Last modified: 2008-10-06 07:03:35 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 T17675, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15675 - Imagemap does not check for even number of data values
Imagemap does not check for even number of data values
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
ImageMap (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Tim Starling
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-09-21 16:24 UTC by Michael Daly
Modified: 2008-10-06 07:03 UTC (History)
0 users

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


Attachments

Description Michael Daly 2008-09-21 16:24:17 UTC
When a polygonal area is defined, ImageMap does not check that there is an even number of data values entered.  If an odd number of values is entered, the error is ignored and the resulting map is potentially unusable.

Example:

poly 0 0 100 100 100 0 666 [some link]]

Since the values define vertices for the polygon, they should be in pairs - in this case (0,0), (100,100) and (100,0).  The extra value of 666 may generate a map that is not usable.

This does not occur for circle and rect values, only for poly.
Comment 1 Michael Daly 2008-09-27 17:25:15 UTC
A fix for this is contained in the patch submitted for bug 9126.
Comment 2 Tim Starling 2008-10-06 07:03:35 UTC
Fixed in r41730.

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


Navigation
Links