From: Roland Haeder Date: Fri, 31 Mar 2017 18:05:15 +0000 (+0200) Subject: fixed parser error X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5db963a8356ac34b07f2471b24ecddbe0efc296f;p=friendica.git fixed parser error Signed-off-by: Roland Haeder --- diff --git a/boot.php b/boot.php index b83f494dd7..f65829ed18 100644 --- a/boot.php +++ b/boot.php @@ -697,7 +697,7 @@ class App { $this->query_string = substr($_SERVER['QUERY_STRING'], 9); // removing trailing / - maybe a nginx problem - $this->query_string = lrim($this->query_string, '/'); + $this->query_string = ltrim($this->query_string, '/'); } elseif ((x($_SERVER, 'QUERY_STRING')) && substr($_SERVER['QUERY_STRING'], 0, 2) === "q=") { $this->query_string = substr($_SERVER['QUERY_STRING'], 2);