summaryrefslogtreecommitdiff
path: root/net/phpldapadmin/files/patch-htdocs_cmd.php
diff options
context:
space:
mode:
authorKrzysztof <ports@bsdserwis.com>2022-11-27 21:17:33 +0100
committerRonald Klop <ronald@FreeBSD.org>2022-12-01 10:53:34 +0100
commitfee2b338d2af883ca4dd75a7d285f65b284fb73b (patch)
tree7ac4ed5fd0e3d09bbab43b2eeb736a36758cdd56 /net/phpldapadmin/files/patch-htdocs_cmd.php
parenteditors/bless: resurrect^Wreadd previously expired port (diff)
net/phpldapadmin: fix support for php81+
PR: 266678 Reported by: Gerard Seibert Approved by: rene (mentor) Differential Revision: https://reviews.freebsd.org/D37513
Diffstat (limited to 'net/phpldapadmin/files/patch-htdocs_cmd.php')
-rw-r--r--net/phpldapadmin/files/patch-htdocs_cmd.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/phpldapadmin/files/patch-htdocs_cmd.php b/net/phpldapadmin/files/patch-htdocs_cmd.php
new file mode 100644
index 000000000000..1f4d7b8bf8f0
--- /dev/null
+++ b/net/phpldapadmin/files/patch-htdocs_cmd.php
@@ -0,0 +1,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');