urlencode magic word double encodes entities
Closed, ResolvedPublic


Author: mwtoews

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".

Version: unspecified
Severity: normal

bzimport added a project: MediaWiki-Parser.Via ConduitNov 21 2014, 9:34 PM
bzimport added a subscriber: Unknown Object (MLST).
bzimport set Reference to bz9031.
bzimport created this task.Via LegacyFeb 19 2007, 9:45 PM
bzimport added a comment.Via ConduitJun 20 2007, 7:36 AM

robchur wrote:

This appears to be the result of encoding occurring further up the parse chain; the function itself is receiving "&lt;" as input.

bzimport added a comment.Via ConduitMay 6 2008, 3:16 PM

mwtoews wrote:

I have noticed that this bug has been fixed (in version 1.13alpha (r34282)).


Add Comment