- Some work done on correcting LDAP package compatibility
This commit is contained in:
1 parent
71de0a8ac1
commit
e3d0e45a4e
13 files changed
+110
-22
No files matched your search
+5
-1
@@ -37,6 +37,9 @@ class Where extends Fragment {
|
||||
|
||||
public function add($field, $value, string $operator, string $condition, bool $not = false) : self
|
||||
{
|
||||
$this->validateFieldType($field);
|
||||
# $this->validateValueType($value);
|
||||
|
||||
$this->conditionList[] = [
|
||||
$field,
|
||||
$value,
|
||||
@@ -110,7 +113,8 @@ class Where extends Fragment {
|
||||
return (in_array($this->operator, [ '!=', '<>' ]) ? Where::CONDITION_NOT . " " : "") . Where::COMPARISON_IN;
|
||||
}
|
||||
|
||||
return $this->operator;
|
||||
# whitelisting operators
|
||||
return in_array(strtoupper($this->operator), [ '=', '!=', '<>', 'LIKE' ]) ? $this->operator : "=";
|
||||
}
|
||||
|
||||
protected function value()
|
||||
|
||||
Reference in new issue
Block a user