1
0
Fork 0
forked from 0x2620/oxjs

add and use Ox.decodeURI and Ox.decodeURIComponent

This commit is contained in:
rlx 2013-08-14 18:53:13 +00:00
commit 51215c1cbe
3 changed files with 20 additions and 2 deletions

View file

@ -12,7 +12,7 @@ Ox.Cookies = function() {
if (document.cookie && document.cookie != '') {
document.cookie.split('; ').forEach(function(cookie) {
name = cookie.split('=')[0];
value[name] = decodeURIComponent(cookie.substring(name.length + 1));
value[name] = Ox.decodeURIComponent(cookie.substring(name.length + 1));
});
}
return value;

View file

@ -563,7 +563,7 @@ Ox.URL = function(options) {
}
function decodeValue(value) {
return decodeURIComponent(value);
return Ox.decodeURIComponent(value);
}
function encodeValue(value) {