Skip to content

Commit

Permalink
Safety check on empty path
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Oct 15, 2015
1 parent 5da88d2 commit babd50f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/src/Grav/Common/Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function init()
$bits = parse_url($uri);

// process query string
if (isset($bits['query'])) {
if (isset($bits['query']) && isset($bits['path'])) {
$this->query = filter_input_array(INPUT_GET, FILTER_SANITIZE_STRING);
$uri = $bits['path'];
}
Expand Down

0 comments on commit babd50f

Please sign in to comment.