[OpenLayers-Trac] [OpenLayers] #3408: OpenLayers.Util.getParameters
deals with empty string incorrectly
OpenLayers
trac-20090302 at openlayers.org
Wed Jul 13 09:33:57 EDT 2011
#3408: OpenLayers.Util.getParameters deals with empty string incorrectly
-------------------+--------------------------------------------------------
Reporter: greid | Owner:
Type: bug | Status: new
Priority: minor | Milestone: 2.11 Release
Component: Util | Version: 2.10
Keywords: | State:
-------------------+--------------------------------------------------------
The function OpenLayers.Util.getParameters is defined to use the window's
current location for extracting parameters if the optional url parameter
is not supplied. However, the check for the url parameter doesn't
correctly deal with an empty string given as a parameter (which is
something that I have experienced when this function is called by
isEquivalentUrl via createUrlObject). The end result is that url
parameters come out of nowhere and affect the URL object creation and url
equivalency check.
This bug is present at least from 2.10 (but probably earlier) up to and
including SVN revision 12167 (HEAD at the time of writing this).
--
Ticket URL: <http://trac.openlayers.org/ticket/3408>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list