fix the filtered query string so it can potentially be re-used as is.
This commit is contained in:
parent
13d19d42cb
commit
6adbb93f0a
2
boot.php
2
boot.php
@ -878,6 +878,8 @@ class App {
|
|||||||
// removing trailing / - maybe a nginx problem
|
// removing trailing / - maybe a nginx problem
|
||||||
if (substr(self::$query_string, 0, 1) == "/")
|
if (substr(self::$query_string, 0, 1) == "/")
|
||||||
self::$query_string = substr(self::$query_string, 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'))
|
if(x($_GET,'q'))
|
||||||
|
Reference in New Issue
Block a user