urlencode magic word double encodes entities
Closed, ResolvedPublic

Assigned To
None
Priority
Normal
Author
bzimport
Subscribers
wikibugs-l
Projects
Reference
bz9031
Description

Author: mwtoews

Description:
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: wikibugs-l.
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)).

Thanks!

Add Comment

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.