]> git.mxchange.org Git - friendica.git/commitdiff
Add URL decoding to query string in App\Arguments
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 27 Oct 2019 13:47:19 +0000 (09:47 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 2 Nov 2019 11:48:45 +0000 (07:48 -0400)
- Slashes were stored url encoded

src/App/Arguments.php

index e65309f6b0ab18dd38bc4ffebd0dcaa266139683..bd9f3b553bdf01b9d72b0707becca79d7653857c 100644 (file)
@@ -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