From: Hypolite Petovan Date: Sun, 27 Oct 2019 13:47:19 +0000 (-0400) Subject: Add URL decoding to query string in App\Arguments X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dca1b8b5807af0660dbf1a643ad4dc20e079c38c;p=friendica.git Add URL decoding to query string in App\Arguments - Slashes were stored url encoded --- diff --git a/src/App/Arguments.php b/src/App/Arguments.php index e65309f6b0..bd9f3b553b 100644 --- a/src/App/Arguments.php +++ b/src/App/Arguments.php @@ -105,9 +105,9 @@ class Arguments $queryString = ''; if (!empty($server['QUERY_STRING']) && strpos($server['QUERY_STRING'], 'pagename=') === 0) { - $queryString = substr($server['QUERY_STRING'], 9); + $queryString = urldecode(substr($server['QUERY_STRING'], 9)); } elseif (!empty($server['QUERY_STRING']) && strpos($server['QUERY_STRING'], 'q=') === 0) { - $queryString = substr($server['QUERY_STRING'], 2); + $queryString = urldecode(substr($server['QUERY_STRING'], 2)); } // eventually strip ZRL