use decodeValue for hash url keys/values too
This commit is contained in:
parent
600cc9c3e9
commit
f858b779e8
1 changed files with 3 additions and 3 deletions
|
@ -475,7 +475,7 @@ Ox.URL = function(options) {
|
|||
var obj = {};
|
||||
if (hash.query) {
|
||||
hash.query.forEach(function(condition) {
|
||||
obj[condition.key] = condition.value;
|
||||
obj[encodeValue(condition.key)] = encodeValue(condition.value);
|
||||
});
|
||||
}
|
||||
return hash.anchor || hash.query
|
||||
|
@ -722,8 +722,8 @@ Ox.URL = function(options) {
|
|||
Ox.forEach(Ox.unserialize(split[1], true), function(value, key) {
|
||||
hash.query = hash.query || [];
|
||||
hash.query.push({
|
||||
key: key,
|
||||
value: value
|
||||
key: decodeValue(key),
|
||||
value: decodeValue(value)
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue