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:
Frédéric Junod
2010-02-17 06:59:49 +00:00
parent 662564957c
commit 876fdebec9
2 changed files with 10 additions and 7 deletions

View File

@@ -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) {