LSsearch : Added initial check of predefinedFilters validity/syntax before use.

This commit is contained in:
Benjamin Renard 2010-02-03 03:09:23 +01:00
parent 9eb547d20d
commit 6fefd7cb88

View file

@ -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]);
}
}
}
}
/**