0
0
mirror of https://github.com/Doodle3D/doodle3d-connect.git synced 2024-12-25 01:53:48 +01:00

encoding url params

This commit is contained in:
peteruithoven 2014-04-25 16:22:55 +02:00
parent a2caf7554d
commit e8d0283447

View File

@ -22,6 +22,9 @@ d3d.util = {
( pair.length > 1 ? pair[ 1 ] : true );
}
});
$.each(parameters, function( index, value ) {
parameters[index] = decodeURIComponent(value)
});
}
return {
parsed: parsed,
@ -37,6 +40,7 @@ d3d.util = {
href = href.split("?")[0];
var i = 0;
jQuery.each(parameters, function (key,value) {
value = encodeURIComponent(value);
href += (i===0)? "?" : "&";
href += key+"="+value;
i++;