From 157a9e895ccdb6f6f4ff68e3bfff698a7ea7d369 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Thu, 19 Jul 2018 13:42:57 -0700 Subject: fix the filtered query string so it can potentially be re-used as is. (cherry picked from commit 6adbb93f0a4990a93c759b0fee580db6891527e2) --- boot.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boot.php b/boot.php index b47dc6870..e602e44d6 100755 --- a/boot.php +++ b/boot.php @@ -878,6 +878,8 @@ class App { // removing trailing / - maybe a nginx problem if (substr(self::$query_string, 0, 1) == "/") self::$query_string = substr(self::$query_string, 1); + // change the first & to ? + self::$query_string = preg_replace('/&/','?',self::$query_string,1); } if(x($_GET,'q')) -- cgit v1.2.3