Page MenuHomePhabricator

Ampersand ("&") in comment causes Imagemap to fail
Closed, ResolvedPublic

Description

Author: paul

Description:
Go to this page:
http://en.wikipedia.org/wiki/Area_codes_304_and_681
(Which is the current revision, and has no problem):
http://en.wikipedia.org/w/index.php?title=Area_codes_304_and_681&oldid=233857401

or go to the previous revision, where the problem occurs:
http://en.wikipedia.org/w/index.php?title=Area_codes_304_and_681&oldid=233857184

In the comment of the imagemap, if the following appears (which is in the current page) as the first two lines, it's okay:
<imagemap>
Image:Area code 304.png|thumb|right|250px|Area Codes 304 and 681. This map is clickable; click on an area code to go to the page for that code.

But if the following two lines appear (which is the previous revision), it fails:
<imagemap>
Image:Area code 304.png|thumb|right|250px|Area Codes 304 & 681. This map is clickable; click on an area code to go to the page for that code.

In this case, if an ampersand appears in the comment, the imagemap will fail and won't display, with a message in red:

Error: image is invalid or non-existent

Under Special:Version, the Wikimedia software returns

Installed software
Product Version
MediaWiki 1.14alpha (r39805)
PHP 5.2.1 (apache2handler)
MySQL 4.0.40-wikimedia-log


Paul Robinson <paul@paul-robinson.us> http://paul-robinson.us
"Above all else... We shall go on..." "_...And continue!_"
"The lessons of history teach us - if they teach us anything - that no one learns the lessons that history teaches us."


Version: 1.14.x
Severity: minor

Details

Reference
bz15289

Event Timeline

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