Page MenuHomePhabricator

{{urlencode:{{PAGENAME}} }} encodes & in the title as %26amp%3B
Closed, ResolvedPublic

Description

On a page whose title contains an &, urlencode over {{PAGENAME}} or {{FULLPAGENAME}} will produce %26amp%3B instead of %26.


Version: 1.16.x
Severity: normal

Details

Reference
bz22508

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:59 PM
bzimport set Reference to bz22508.
bzimport added a subscriber: Unknown Object (MLST).

ParserTest:

!! test
Bug 22508 - {{urlencode:{{PAGENAME}} }} produce %26amp%3B
!! options
title=[[&]]
!! input
{{urlencode:{{FULLPAGENAME}} }}
{{urlencode:{{PAGENAME}} }}
!! result
<p>%26
%26
</p>
!! end

  • This bug has been marked as a duplicate of bug 13288 ***