Page titles containing ISBN give unexpected values for FULLPAGENAME
Open, LowPublic


According to Special:ExpandTemplates, if you use a page title that has "ISBN" embedded in it, such as "Pages with ISBN errors" then {{FULLPAGENAME}} has unexpected behavior.

Specifically there is a html-entity   following the word ISBN rather than a space. Obviously space and encoding character #32 are the same thing visually, but they are not the same thing from the point of view of comparison operations such as #ifeq. This can lead to unexpected behavior.

Please fix it to remove the unnecessary encoding.

Version: 1.22.0
Severity: minor


bzimport set Reference to bz47049.
bzimport added a subscriber: Unknown Object (MLST).

(In reply to comment #0)

According to Special:ExpandTemplates

Any link?

Any accessible testcase somewhere to see the behavior?

Which MediaWiki version is this about?

If I had to guess, I think the place to look for this is actually in Mediawiki and not one of the extensions. Specifically, I'd suggest starting at:


Which does the ISBN transform described at: (Item #9)

FULLPAGENAME and other variables goes through wfEscapeWikiText, which does this to avoid parsing as magic links

Add Comment