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:
parent
a2caf7554d
commit
e8d0283447
@ -22,6 +22,9 @@ d3d.util = {
|
|||||||
( pair.length > 1 ? pair[ 1 ] : true );
|
( pair.length > 1 ? pair[ 1 ] : true );
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
$.each(parameters, function( index, value ) {
|
||||||
|
parameters[index] = decodeURIComponent(value)
|
||||||
|
});
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
parsed: parsed,
|
parsed: parsed,
|
||||||
@ -37,6 +40,7 @@ d3d.util = {
|
|||||||
href = href.split("?")[0];
|
href = href.split("?")[0];
|
||||||
var i = 0;
|
var i = 0;
|
||||||
jQuery.each(parameters, function (key,value) {
|
jQuery.each(parameters, function (key,value) {
|
||||||
|
value = encodeURIComponent(value);
|
||||||
href += (i===0)? "?" : "&";
|
href += (i===0)? "?" : "&";
|
||||||
href += key+"="+value;
|
href += key+"="+value;
|
||||||
i++;
|
i++;
|
||||||
|
Loading…
Reference in New Issue
Block a user