Page titles containing ISBN give unexpected values for FULLPAGENAME


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 added a project: MediaWiki-Parser.Via ConduitNov 22 2014, 1:24 AM
bzimport added a subscriber: Unknown Object (MLST).
bzimport set Reference to bz47049.
Dragons_flight created this task.Via LegacyApr 9 2013, 6:24 PM
Aklapper added a comment.Via ConduitApr 10 2013, 11:32 AM

(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?

Dragons_flight added a comment.Via ConduitApr 10 2013, 4:23 PM

Current Mediawiki.

Here is a demonstration page:

Dragons_flight added a comment.Via ConduitApr 10 2013, 4:57 PM

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)

Umherirrender added a comment.Via ConduitJul 12 2013, 7:43 PM

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

Umherirrender removed a subscriber: Umherirrender.Via WebFeb 24 2015, 7:37 PM

Add Comment