Parameters for URLs should be URI encoded. Add test for params that need

to be URI encoded in test_Util, and add Tim Schaub's patch from #381 to make
test pass.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@1909 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt committed 2006-11-18 15:35:02 +00:00
1 parent b4ae7778b6
commit d77b849405
2 files changed
+3 -1

No files matched your search

+2 -1
View File
@@ -380,7 +380,8 @@ OpenLayers.Util.getParameterString = function(params) {
for (var key in params) {
var value = params[key];
if ((value != null) && (typeof value != 'function')) {
paramsArray.push(key + "=" + value);
paramsArray.push(encodeURIComponent(key) + "=" +
encodeURIComponent(value));
}
}