Fix Pico::evaluateRequestUrl(): PHP's built-in webserver doesn't always set QUERY_STRING
This commit is contained in:
parent
f9f998af65
commit
f73c9622b8
1 changed files with 1 additions and 1 deletions
|
@ -697,7 +697,7 @@ class Pico
|
|||
protected function evaluateRequestUrl()
|
||||
{
|
||||
// use QUERY_STRING; e.g. /pico/?sub/page
|
||||
$pathComponent = $_SERVER['QUERY_STRING'];
|
||||
$pathComponent = isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : '';
|
||||
if (!empty($pathComponent)) {
|
||||
if (($pathComponentLength = strpos($pathComponent, '&')) !== false) {
|
||||
$pathComponent = substr($pathComponent, 0, $pathComponentLength);
|
||||
|
|
Loading…
Reference in a new issue