Last modified: 2006-05-27 01:26:07 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T8102, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 6102 - HTML decimal entities should not be escaped on URLs
HTML decimal entities should not be escaped on URLs
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.7.x
All All
: Normal normal (vote)
: ---
Assigned To: Brion Vibber
http://en.wikipedia.org/wiki/User:Ces...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-05-26 22:23 UTC by Cesar Eduardo Barros
Modified: 2006-05-27 01:26 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Cesar Eduardo Barros 2006-05-26 22:23:35 UTC
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).
Comment 1 Cesar Eduardo Barros 2006-05-26 22:26:28 UTC
Live testcase: [[User:CesarB/Testcases/6102]]
Comment 3 Brion Vibber 2006-05-27 01:23:01 UTC
Note that this extends the special-case in bug 1288 to cover all standard 
HTML character entities.
Comment 4 Brion Vibber 2006-05-27 01:26:07 UTC
Rather, bug 1228. Bah.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links