mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
LSsearch : Added initial check of predefinedFilters validity/syntax before use.
This commit is contained in:
parent
9eb547d20d
commit
6fefd7cb88
1 changed files with 7 additions and 0 deletions
|
@ -121,6 +121,13 @@ class LSsearch {
|
|||
*/
|
||||
private function loadConfig() {
|
||||
$this -> config = LSconfig::get("LSobjects.".$this -> LSobject.".LSsearch");
|
||||
if (is_array($this -> config['predefinedFilters'])) {
|
||||
foreach(array_keys($this -> config['predefinedFilters']) as $key) {
|
||||
if(!LSldap::isValidFilter($key)) {
|
||||
unset($this -> config['predefinedFilters'][$key]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue