X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FApp%2FArguments.php;h=bd9f3b553bdf01b9d72b0707becca79d7653857c;hb=0dbce6e58ba6494daf1ad30812cdffd5a779eda4;hp=8047186a0762d3dec2cb89893331e0268a93fad2;hpb=541cdcd515cb4e3b4634287216001a4eea063e73;p=friendica.git diff --git a/src/App/Arguments.php b/src/App/Arguments.php index 8047186a07..bd9f3b553b 100644 --- a/src/App/Arguments.php +++ b/src/App/Arguments.php @@ -70,7 +70,7 @@ class Arguments /** * Returns the value of a argv key - * @todo there are a lot of $a->argv usages in combination with defaults() which can be replaced with this method + * @todo there are a lot of $a->argv usages in combination with ?? which can be replaced with this method * * @param int $position the position of the argument * @param mixed $default the default value if not found @@ -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