From 8cba68a55f9f34c272b106beb42b5653578bbb46 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 4 Feb 2014 09:49:09 +0000 Subject: [PATCH] followup to r3240, only encode strings --- source/Ox.UI/js/Core/URL.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Core/URL.js b/source/Ox.UI/js/Core/URL.js index 446d80c5..2d84eec9 100644 --- a/source/Ox.UI/js/Core/URL.js +++ b/source/Ox.UI/js/Core/URL.js @@ -475,7 +475,9 @@ Ox.URL = function(options) { var obj = {}; if (hash.query) { hash.query.forEach(function(condition) { - obj[encodeValue(condition.key)] = encodeValue(condition.value); + obj[encodeValue(condition.key)] = Ox.isString(condition.value) + ? encodeValue(condition.value) + : condition.value; }); } return hash.anchor || hash.query