freebsd-ports/net/phpldapadmin/files/patch-htdocs_copy.php
Krzysztof fee2b338d2
net/phpldapadmin: fix support for php81+
PR:	266678
Reported by:	Gerard Seibert
Approved by: rene (mentor)
Differential Revision: https://reviews.freebsd.org/D37513
2022-12-01 10:53:34 +01:00

11 lines
419 B
PHP

--- htdocs/copy.php.orig 2021-12-12 02:35:51 UTC
+++ htdocs/copy.php
@@ -21,7 +21,7 @@ $ldap['SRC'] = $_SESSION[APPCONFIG]->getServer(get_req
$ldap['DST'] = $_SESSION[APPCONFIG]->getServer(get_request('server_id_dst'));
# Error checking
-if (! trim($request['dnDST']))
+if (! trim((string) $request['dnDST']))
error(_('You left the destination DN blank.'),'error','index.php');
if ($ldap['DST']->isReadOnly())