filter: Fix whitespace sanitizing
This commit is contained in:
parent
d27d993395
commit
865ef76cb8
|
@ -131,8 +131,6 @@ abstract class Filter
|
|||
|
||||
public static function expression($col, $op, $expression)
|
||||
{
|
||||
$col = trim($col);
|
||||
$expression = is_array($expression) ? array_map('trim', $expression) : trim($expression);
|
||||
switch ($op) {
|
||||
case '=': return new FilterMatch($col, $op, $expression);
|
||||
case '<': return new FilterLessThan($col, $op, $expression);
|
||||
|
|
|
@ -12,6 +12,8 @@ class FilterExpression extends Filter
|
|||
|
||||
public function __construct($column, $sign, $expression)
|
||||
{
|
||||
$column = trim($column);
|
||||
$expression = is_array($expression) ? array_map('trim', $expression) : trim($expression);
|
||||
$this->column = $column;
|
||||
$this->sign = $sign;
|
||||
$this->expression = $expression;
|
||||
|
|
Loading…
Reference in New Issue