Last modified: 2008-05-06 15:16:51 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 T11031, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 9031 - urlencode magic word double encodes entities
urlencode magic word double encodes entities
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Normal normal with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-02-19 21:45 UTC by Michael Toews
Modified: 2008-05-06 15:16 UTC (History)
2 users (show)

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


Attachments

Description Michael Toews 2007-02-19 21:45:09 UTC
In the present version of Wikipedia (can't find version number!), the urlencode
string parser function double encodes. For example: "{{urlencode:<}}" results in
"%26lt%3B", when a correct result should be "%3". Here, the string is first
encoded into "&gt;", which then gets encoded into raw format, "&" into "%26" and
";" into "%3B".
Comment 1 Rob Church 2007-06-20 07:36:41 UTC
This appears to be the result of encoding occurring further up the parse chain; the function itself is receiving "&lt;" as input.
Comment 2 Michael Toews 2008-05-06 15:16:51 UTC
I have noticed that this bug has been fixed (in version 1.13alpha (r34282)).

Thanks!

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


Navigation
Links