X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FApp%2FArguments.php;h=e2f60b1956529ad224fe49c7ab524992374c1a06;hb=aa0b485f3dca72c5448076e913fa54d948cd7731;hp=8047186a0762d3dec2cb89893331e0268a93fad2;hpb=4c4ed63dca13cc0382af9020e69980c63f988b47;p=friendica.git diff --git a/src/App/Arguments.php b/src/App/Arguments.php index 8047186a07..e2f60b1956 100644 --- a/src/App/Arguments.php +++ b/src/App/Arguments.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\App; @@ -70,7 +89,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 +124,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