summaryrefslogtreecommitdiff
path: root/net/phpldapadmin/files/patch-htdocs_cmd.php
blob: 1f4d7b8bf8f0f385dba85989328fe998d5d18fca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- htdocs/cmd.php.orig	2021-12-12 02:35:51 UTC
+++ htdocs/cmd.php
@@ -41,7 +41,7 @@ if (DEBUG_ENABLED)
 $www['page'] = new page($app['server']->getIndex());
 
 # See if we can render the command
-if (trim($www['cmd'])) {
+if (trim((string) $www['cmd'])) {
 	# If this is a READ-WRITE operation, the LDAP server must not be in READ-ONLY mode.
 	if ($app['server']->isReadOnly() && ! in_array(get_request('cmd','REQUEST'),$app['readwrite_cmds']))
 		error(_('You cannot perform updates while server is in read-only mode'),'error','index.php');