Check strpos result explicitly, whoops

develop
Sven Slootweg 11 years ago
parent 238195c19a
commit 5f343edfcd

@ -53,7 +53,7 @@ foreach($cphp_config->components as $component)
/* Detect whether the request URI and the $_GET array disagree on the
* existence of GET parameters. */
if(strpos($_SERVER['REQUEST_URI'], "?") && empty($_GET))
if(strpos($_SERVER['REQUEST_URI'], "?") !== false && empty($_GET))
{
/* Separate the protocol/host/path component from the query string. */
list($uri, $query) = explode("?", $_SERVER['REQUEST_URI'], 2);

Loading…
Cancel
Save