Last modified: 2008-09-09 19:45:45 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 T17289, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15289 - Ampersand ("&") in comment causes Imagemap to fail
Ampersand ("&") in comment causes Imagemap to fail
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.14.x
All All
: Normal minor with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-08-24 03:32 UTC by Paul Robinson
Modified: 2008-09-09 19:45 UTC (History)
1 user (show)

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


Attachments

Description Paul Robinson 2008-08-24 03:32:05 UTC
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."
Comment 1 Alex Z. 2008-09-09 19:45:45 UTC
Fixed in r40671.

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


Navigation
Links