mirror of
https://github.com/Doodle3D/doodle3d-connect.git
synced 2024-11-04 22:53:23 +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 );
|
||||
}
|
||||
});
|
||||
$.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++;
|
||||
|
Loading…
Reference in New Issue
Block a user