fixed parser error

Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2017-03-31 20:05:15 +02:00
parent 0bc15efef6
commit 5db963a835
No known key found for this signature in database
GPG Key ID: B72F8185C6C7BD78
1 changed files with 1 additions and 1 deletions

View File

@ -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);