fix the url controller '/=foo' and '/unknown=foo' bug again
This commit is contained in:
parent
7eb73dd4fb
commit
fdbcdf975b
1 changed files with 9 additions and 4 deletions
|
@ -308,10 +308,15 @@ Ox.URL = function(options) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (Ox.getPositionById(self.options.findKeys, condition.key) == -1) {
|
if (!condition.operator) {
|
||||||
condition = {key: '*', value: str, operator: '='};
|
// missing operator
|
||||||
} else if (!condition.operator) {
|
|
||||||
condition = {key: '*', value: condition.value, operator: '='};
|
condition = {key: '*', value: condition.value, operator: '='};
|
||||||
|
} else if (
|
||||||
|
condition.key
|
||||||
|
&& Ox.getPositionById(self.options.findKeys, condition.key) == -1
|
||||||
|
) {
|
||||||
|
// unknown key
|
||||||
|
condition = {key: '*', value: str, operator: '='};
|
||||||
}
|
}
|
||||||
if (['=', '!='].indexOf(condition.operator) > -1) {
|
if (['=', '!='].indexOf(condition.operator) > -1) {
|
||||||
if (condition.value[0] == '*') {
|
if (condition.value[0] == '*') {
|
||||||
|
|
Loading…
Reference in a new issue