Page MenuHomePhabricator

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

Description

Author: clockworksoul

Description:
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"
title="Special:PrefixIndex">
Next page (WikiProject_Anime_and_manga/Userbox/User_RedSuns_Ryosuke)
</a>


Version: 1.12.x
Severity: minor
URL: http://en.wikipedia.org/w/index.php?title=Special:PrefixIndex&from=WikiProject_Mathematics/Wikipedia_1.0/Probability_and_statistics/Top&prefix=WikiProject&namespace=4

Details

Reference
bz13949

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)
</a>

clockworksoul wrote:

This bug seems to have reappeared: take a look at http://en.wikipedia.org/w/index.php?title=Special:PrefixIndex&from=WikiProject_Medieval_Scotland/Bibliography/others&prefix=WikiProject&namespace=4

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

<a

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

</a>

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.