It is not necessary to escape the field as cakephp will do it for us

pull/3710/head
Isaac Connor 2023-05-12 15:07:28 -04:00
parent 494be9c0ef
commit 54373e4e85
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ class FilterComponent extends Component {
throw new Exception('Invalid operator: ' . $operator);
}
$lhs = '`' . $matches['field'] . '` ' . $operator;
$lhs = $matches['field'] . ' ' . $operator;
// If the named param contains an array, we want to turn it into an IN condition
// Otherwise, we add it right into the $conditions array
if (is_array($value)) {