com web/bugs: Fix annoying array to string error if you are logged in as a security dev, this will no longer make some links look like
'...&0=Array...': www/search.php
| From: | Kalle Sommer Nielsen | Date: | Mon, 23 Oct 2017 00:49:10 +0000 |
| Subject: | com web/bugs: Fix annoying array to string error if you are logged in as a security dev, this will no longer make some links look like '...&0=Array...': www/search.php |
||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-26486@lists.php.net to get a copy of this message | ||
Commit: 7cbdc46c84958d8ae1f28e227e6bb3b8f042cb53
Author: Kalle Sommer Nielsen <kalle@php.net> Mon, 23 Oct 2017 02:49:10 +0200
Parents: abce70f67af9dd138710e29775f5e1fc33bf34e5
Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=7cbdc46c84958d8ae1f28e227e6bb3b8f042cb53
Log:
Fix annoying array to string error if you are logged in as a security dev, this will no longer make
some links look like '...&0=Array...'
Changed paths:
M www/search.php
Diff:
diff --git a/www/search.php b/www/search.php
index 7e976da..ba4ff35 100644
--- a/www/search.php
+++ b/www/search.php
@@ -82,7 +82,7 @@ if (isset($_GET['cmd']) && $_GET['cmd'] ==
'display')
];
if ($is_security_developer) {
- $link_params[] = ['private' => $private];
+ $link_params['private'] = $private;
}
// Remove empty URL parameters