Page MenuHomePhabricator

HTML decimal entities should not be escaped on URLs
Closed, ResolvedPublic

Description

When a decimal entity (for instance =) is found within a URL, it should be
passed as is to the browser (or perhaps unescaped where possible, as happens
with the rest of the text), instead of being escaped.

For instance:

http://en.wikipedia.org/wiki/Special:Preferences?useskin=monobook

Actual result:

<a
href="http://en.wikipedia.org/wiki/Special:Preferences?useskin&amp;#61;monobook"
class='external free'
title="http://en.wikipedia.org/wiki/Special:Preferences?useskin&amp;#61;monobook"
rel="nofollow">http://en.wikipedia.org/wiki/Special:Preferences?useskin&amp;#61;monobook</a>

Expected result:

either:
<a href="http://en.wikipedia.org/wiki/Special:Preferences?useskin&#61;monobook"
class='external free'
title="http://en.wikipedia.org/wiki/Special:Preferences?useskin&#61;monobook"
rel="nofollow">http://en.wikipedia.org/wiki/Special:Preferences?useskin&#61;monobook</a>

or:
<a href="http://en.wikipedia.org/wiki/Special:Preferences?useskin=monobook"
class='external free'
title="http://en.wikipedia.org/wiki/Special:Preferences?useskin=monobook"
rel="nofollow">http://en.wikipedia.org/wiki/Special:Preferences?useskin=monobook</a>

This was found when trying to fix the link on the FAQ on the header of
[[Wikipedia:Village pump (technical)]] (the previous trick, using nowiki, seems
to have stopped working, and the 2= trick also isn't working).


Version: 1.7.x
Severity: normal
URL: http://en.wikipedia.org/wiki/User:CesarB/Testcases/6102

Details

Reference
bz6102

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:15 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz6102.

Live testcase: [[User:CesarB/Testcases/6102]]

Note that this extends the special-case in bug 1288 to cover all standard
HTML character entities.