forked from 0x2620/oxjs
add and use Ox.decodeURI and Ox.decodeURIComponent
This commit is contained in:
parent
7576654e0d
commit
51215c1cbe
3 changed files with 20 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue