From f858b779e8fce6e6f48c605e02ddd126c01e772a Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 3 Feb 2014 18:55:55 +0000 Subject: [PATCH] use decodeValue for hash url keys/values too --- source/Ox.UI/js/Core/URL.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/Ox.UI/js/Core/URL.js b/source/Ox.UI/js/Core/URL.js index 90e47558..e51a3963 100644 --- a/source/Ox.UI/js/Core/URL.js +++ b/source/Ox.UI/js/Core/URL.js @@ -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) }); }); }