From f1bfb545f1d9e6ea09ba8075d9f7811865189289 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Thu, 6 Oct 2011 06:02:54 +0000 Subject: [PATCH] fix a bug in Ox.URL where URLs of the form '/=foo' would not be parsed correctly --- source/Ox.UI/js/Core/Ox.URL.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/Ox.UI/js/Core/Ox.URL.js b/source/Ox.UI/js/Core/Ox.URL.js index 20f89a4d..6967fe65 100644 --- a/source/Ox.UI/js/Core/Ox.URL.js +++ b/source/Ox.UI/js/Core/Ox.URL.js @@ -313,7 +313,7 @@ Ox.URL = function(options) { || Ox.getPositionById(self.options.findKeys, condition.key) == -1 ) { // missing operator or unknown key - condition = {key: '*', value: str, operator: '='}; + condition = {key: '*', value: condition.value, operator: '='}; } if (['=', '!='].indexOf(condition.operator) > -1) { if (condition.value[0] == '*') { @@ -415,7 +415,6 @@ Ox.URL = function(options) { } function parseURL(str, callback) { - Ox.print('pU', str) // fixme: removing trailing slash makes it impossible to search for '/' str = str.replace(/(^\/|\/$)/g, ''); var parts = str.split('/'),