/**
* 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
$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