summaryrefslogtreecommitdiff
path: root/net/phpldapadmin/files/patch-htdocs_copy.php
blob: 3f0a46fcfea29298b5500f59c0acb502cd6633d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- 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())