Skip to content

Commit

Permalink
Check strpos result explicitly, whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
joepie91 committed May 24, 2013
1 parent 238195c commit 5f343ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

/* 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);
Expand Down

0 comments on commit 5f343ed

Please sign in to comment.