OpenLayers.Util.getParameters: decodeURIComponent the keys, not only the values. r=elemoine (closes #2327)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10071 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -980,10 +980,7 @@ OpenLayers.Util.getParameters = function(url) {
|
||||
var value = keyValue[1] || ''; //empty string if no value
|
||||
|
||||
//decode individual values
|
||||
value = value.split(",");
|
||||
for(var j=0, jlen=value.length; j<jlen; j++) {
|
||||
value[j] = decodeURIComponent(value[j]);
|
||||
}
|
||||
value = decodeURIComponent(value).split(",");
|
||||
|
||||
//if there's only one value, do not return as array
|
||||
if (value.length == 1) {
|
||||
|
||||
Reference in New Issue
Block a user