summaryrefslogtreecommitdiff
path: root/net/phpldapadmin/files/patch-htdocs_expand.php
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2022-03-06 22:40:55 -0600
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2022-03-06 22:43:50 -0600
commita9c2430bd9f97ff6bfcc2daf9a791f549a1d2f9b (patch)
tree25447597f0ab9d0eb6369a4549a28440d1f68a09 /net/phpldapadmin/files/patch-htdocs_expand.php
parentdevel/R-cran-rlang: Update to 1.0.2 (diff)
net/phpldapadmin: Fix runtime with php80
- Pet portclippy/portfmt PR: 261990 Reported by: ohartmann@walstatt.org Approved by: ports@bsdserwis.com (maintainer) Sponsored by: Bounce Experts
Diffstat (limited to 'net/phpldapadmin/files/patch-htdocs_expand.php')
-rw-r--r--net/phpldapadmin/files/patch-htdocs_expand.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/phpldapadmin/files/patch-htdocs_expand.php b/net/phpldapadmin/files/patch-htdocs_expand.php
new file mode 100644
index 000000000000..62962d0bce47
--- /dev/null
+++ b/net/phpldapadmin/files/patch-htdocs_expand.php
@@ -0,0 +1,11 @@
+--- htdocs/expand.php.orig 2021-12-12 02:35:51 UTC
++++ htdocs/expand.php
+@@ -19,7 +19,7 @@ $dn = get_request('dn','GET',true);
+ $tree = get_cached_item($app['server']->getIndex(),'tree');
+ $entry = $tree->getEntry($dn);
+ $entry->open();
+-set_cached_item($app['server']->getIndex(),'tree','null',$tree);
++set_cached_item($app['server']->getIndex(),$tree,'tree','null');
+
+ header(sprintf('Location:index.php?server_id=%s&junk=%s#%s%s',
+ $app['server']->getIndex(),random_junk(),htmlid($app['server']->getIndex(),$dn),app_session_param()));