Page MenuHomePhabricator

Special:PrefixIndex/AllPages paging links contain invalid XML
Closed, ResolvedPublic


Author: clockworksoul

When label for the "Next page" link generated for Special:PrefixIndex contains an ampersand in the title, it isn't converted into an "&", generating a fatal error when trying to parse the XML on the page.

An example of such a link is below, generated today on en wikipedia:

<a href="/w/index.php?title=Special:PrefixIndex&amp;from=WikiProject_Anime_and_manga/Userbox/User_RedSuns_Ryosuke&amp;prefix=WikiProject&amp;namespace=4"
Next page (WikiProject_Anime_and_manga/Userbox/User_RedSuns_Ryosuke)

Version: 1.12.x
Severity: minor



Related Objects

Event Timeline

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

clockworksoul wrote:

I gave you the wrong example...

This one is a correct example:

<a href="/w/index.php?title=Special:PrefixIndex&amp;from=WikiProject_Military_history/Assessment/Tag_%26_Assess_2008/075&amp;prefix=WikiProject&amp;namespace=4" title="Special:PrefixIndex">
Next page (WikiProject_Military_history/Assessment/Tag_&_Assess_2008/075)

clockworksoul wrote:

This bug seems to have reappeared: take a look at

On this page (as of the time of this writing) the "Next page" link generates the following:


   Next page (WikiProject_Military_history/Assessment/Tag_&_Assess_2008/124)


Attempting to parse this causes my parser to complain as follows: "The reference to entity "_Assess_2008" must end with the ';' delimiter."

clockworksoul wrote:

My mistake: this fix simply hasn't yet been incorporated into the release version of WikiMedia.

This is not your mistake, this revision is already live. Special:Prefixindex should be fixed in r37704.