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) {
// missing operator
condition = {key: '*', value: condition.value, operator: '='};
} else if (
condition.key
&& Ox.getPositionById(self.options.findKeys, condition.key) == -1
) {
} else if (!condition.key) {
// missing key
condition.key = '*';
} else if (Ox.getPositionById(self.options.findKeys, condition.key) == -1) {
// unknown key
condition = {key: '*', value: str, operator: '='};
}