ports/net/phpldapadmin/files/patch-lib_ds__ldap.php
Krzysztof a5bd98809b net/phpldapadmin: Fix runtime with php82
phpldapadmin needs some more patches to work correctly (without
error/warning messages in webserver logs).

PR:		274970
2023-11-12 20:23:01 +01:00

11 lines
298 B
PHP

--- lib/ds_ldap.php.orig 2023-04-01 13:46:16 UTC
+++ lib/ds_ldap.php
@@ -991,7 +991,7 @@ class ldap extends DS {
$return = $dn;
foreach ($this->getBaseDN() as $base) {
- if (preg_match("/${base}$/i",$dn)) {
+ if (preg_match("/{$base}$/i",$dn)) {
$return = $base;
break;
}