mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Fix: Escape group names for LDAP
Groups may contain special characters (Like "(" or ")") that should be escaped to ensure geenrted queries are correct.
Signed-off-by: AaronDewes <aaron.dewes@protonmail.com>
This commit is contained in:
parent
51a73d8e80
commit
c42d9d439a
1 changed files with 1 additions and 1 deletions
|
|
@ -973,7 +973,7 @@ class Wizard extends LDAPUtility {
|
|||
if (is_array($cns) && count($cns) > 0) {
|
||||
$filter .= '(|';
|
||||
foreach ($cns as $cn) {
|
||||
$filter .= '(cn=' . $cn . ')';
|
||||
$filter .= '(cn=' . ldap_escape($cn, '', LDAP_ESCAPE_FILTER) . ')';
|
||||
}
|
||||
$filter .= ')';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue