Last modified: 2008-02-14 01:54:25 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 T13504, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 11504 - External links with & in them break in an imagemap
External links with & in them break in an imagemap
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
ImageMap (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://www.mediawiki.org/wiki/Extensi...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-09-29 23:39 UTC by Prodego
Modified: 2008-02-14 01:54 UTC (History)
0 users

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


Attachments

Description Prodego 2007-09-29 23:39:01 UTC
Using imagemap to link to an external URL with '&' in it will break, the & is converted to &. (that is &amp ; in case it renders it) So a link to www.&.com will go to www.&.com (again &amp ;).
Comment 1 Brion Vibber 2007-10-01 13:20:46 UTC
www.&.com is not a valid domain.
Comment 2 Prodego 2007-10-01 19:49:07 UTC
However, something like "en.wikipedia.org/w/index.php?title=Main_Page&action=edit" is valid, and also contains an & symbol. I just used the invalid www.&.com to demonstrate how the & is treated.
Comment 3 Brion Vibber 2007-10-02 14:54:55 UTC
Providing a real example would have helped. :)

Here's a sample ....

<imagemap>
Image:Foo.jpg|200px|picture of a foo
poly 131 45 213 41 210 110 127 109 [http://en.wikipedia.org/w/index.php?title=Display&action=history]
</imagemap>

I can confirm that the resulting link is double-HTML-escaped, leading incorrectly to http://en.wikipedia.org/w/index.php?title=Display&amp;action=history

Have put the example live at http://www.mediawiki.org/wiki/Extension:ImageMap/bug_11504

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


Navigation
Links