Workaround for webservers omitting QUERY_STRING
Thanks @theshka for spotting
This commit is contained in:
parent
5eed6d0562
commit
533822320e
1 changed files with 1 additions and 1 deletions
|
@ -374,7 +374,7 @@ class Pico
|
|||
//
|
||||
// Note: you MUST NOT call the index page with /pico/?someBooleanParameter;
|
||||
// use /pico/?someBooleanParameter= or /pico/?index&someBooleanParameter instead
|
||||
$pathComponent = $_SERVER['QUERY_STRING'];
|
||||
$pathComponent = isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : '';
|
||||
if (($pathComponentLength = strpos($pathComponent, '&')) !== false) {
|
||||
$pathComponent = substr($pathComponent, 0, $pathComponentLength);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue