allow @ in filter
This commit is contained in:
parent
343ba86244
commit
30b6c95358
|
@ -212,12 +212,12 @@ class lamList {
|
||||||
$foundFilter = $_POST["filter" . strtolower($this->attrArray[$i])];
|
$foundFilter = $_POST["filter" . strtolower($this->attrArray[$i])];
|
||||||
}
|
}
|
||||||
if (isset($foundFilter) && ($foundFilter != '')) {
|
if (isset($foundFilter) && ($foundFilter != '')) {
|
||||||
if (preg_match('/^([\p{L}\p{N} _\\*\\$\\.-])+$/iu', $foundFilter)) { // \p{L} matches any Unicode letter
|
if (preg_match('/^([\p{L}\p{N} _\\*\\$\\.@-])+$/iu', $foundFilter)) { // \p{L} matches any Unicode letter
|
||||||
$filterParam .= "&filter" . $this->attrArray[$i] . '=' . $foundFilter;
|
$filterParam .= "&filter" . $this->attrArray[$i] . '=' . $foundFilter;
|
||||||
$LDAPFilterPart .= '(' . $this->attrArray[$i] . '=' . $foundFilter . ')';
|
$LDAPFilterPart .= '(' . $this->attrArray[$i] . '=' . $foundFilter . ')';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
StatusMessage('ERROR', _('Please enter a valid filter. Only letters, numbers and " _*$.-" are allowed.'), htmlspecialchars($foundFilter));
|
StatusMessage('ERROR', _('Please enter a valid filter. Only letters, numbers and " _*$.@-" are allowed.'), htmlspecialchars($foundFilter));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue