mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 08:19:05 +01:00
LSsearch : fix possibility to specify a filter and a pattern (in the same time)
This commit is contained in:
parent
c63040203d
commit
6ea6b78fd4
1 changed files with 3 additions and 7 deletions
|
@ -275,22 +275,18 @@ class LSsearch {
|
|||
$OK=false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Patterm
|
||||
if (isset($params['pattern'])) {
|
||||
if ($params['pattern']=="") {
|
||||
$this -> params['pattern'] = NULL;
|
||||
$this -> params['filter'] = NULL;
|
||||
}
|
||||
elseif ($this -> isValidPattern($params['pattern'])) {
|
||||
$this -> params['pattern'] = $params['pattern'];
|
||||
if (!is_string($params['filter'])) {
|
||||
$this -> params['filter']=NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// BaseDN
|
||||
if (isset($params['basedn']) && is_string($params['basedn'])) {
|
||||
if (isCompatibleDNs(LSsession :: getRootDn(),$params['basedn'])) {
|
||||
|
|
Loading…
Reference in a new issue