From 0378c58d26274986b7ac78c1b27468e30766b6d2 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Mon, 26 Aug 2013 17:03:38 +0000 Subject: [PATCH] fix #1836 (don't translate /* to /$)' --- source/Ox.UI/js/Core/URL.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Core/URL.js b/source/Ox.UI/js/Core/URL.js index a6c7e61f..f1ba9b7d 100644 --- a/source/Ox.UI/js/Core/URL.js +++ b/source/Ox.UI/js/Core/URL.js @@ -627,7 +627,10 @@ Ox.URL = function(options) { // missing operator or unknown key condition = {key: '*', value: str, operator: '='}; } - if (['=', '!='].indexOf(condition.operator) > -1) { + if ( + ['=', '!='].indexOf(condition.operator) > -1 + && condition.value != '*' + ) { if (condition.value[0] == '*') { condition.value = condition.value.slice(1); condition.operator = condition.operator.replace('=', '$')