use decodeValue for hash url keys/values too

This commit is contained in:
j 2014-02-03 18:55:55 +00:00
parent 600cc9c3e9
commit f858b779e8

View file

@ -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)
});
});
}