opnsense-ports/net/phpldapadmin/files/patch-htdocs_copy.php
Franco Fichtner 792de5bda9 */*: sync with upstream
Taken from: FreeBSD
2022-12-06 09:38:46 +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())