Last modified: 2013-07-12 19:43:20 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T49049, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 47049 - Page titles containing ISBN give unexpected values for FULLPAGENAME
Page titles containing ISBN give unexpected values for FULLPAGENAME
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.22.0
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-09 18:24 UTC by Robert Rohde
Modified: 2013-07-12 19:43 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Robert Rohde 2013-04-09 18:24:49 UTC
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.
Comment 1 Andre Klapper 2013-04-10 11:32:41 UTC
(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?
Comment 2 Robert Rohde 2013-04-10 16:23:59 UTC
Current Mediawiki.

Here is a demonstration page:

http://test2.wikipedia.org/wiki/This_is_an_ISBN_pagename_test
Comment 3 Robert Rohde 2013-04-10 16:57:23 UTC
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:

Parser::doMagicLinks

Which does the ISBN transform described at:

http://www.mediawiki.org/wiki/Manual:Parser.php (Item #9)
Comment 4 Umherirrender 2013-07-12 19:43:20 UTC
FULLPAGENAME and other variables goes through wfEscapeWikiText, which does this to avoid parsing as magic links

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links