nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.49k stars 4.08k forks source link

fix(user_ldap): Pass `LDAP_ESCAPE_FILTER` for filters to be used with… #49421

Closed solracsf closed 1 day ago

solracsf commented 1 day ago

ldap_search()

https://help.nextcloud.com/t/attempt-for-paging-bad-search-filter/185970/2

Summary

This step ensures that any special characters in the $filter (such as parentheses, asterisks, or backslashes) are properly escaped before performing the LDAP search.

Checklist