fix another url controller bug with '/=foo'

This commit is contained in:
rlx 2011-10-08 10:54:43 +00:00
parent fdbcdf975b
commit bf533cd2fe

View file

@ -311,10 +311,10 @@ Ox.URL = function(options) {
if (!condition.operator) { if (!condition.operator) {
// missing operator // missing operator
condition = {key: '*', value: condition.value, operator: '='}; condition = {key: '*', value: condition.value, operator: '='};
} else if ( } else if (!condition.key) {
condition.key // missing key
&& Ox.getPositionById(self.options.findKeys, condition.key) == -1 condition.key = '*';
) { } else if (Ox.getPositionById(self.options.findKeys, condition.key) == -1) {
// unknown key // unknown key
condition = {key: '*', value: str, operator: '='}; condition = {key: '*', value: str, operator: '='};
} }