Skip to content

Commit

Permalink
Don't run filter_var when request value is null. Fixes #285
Browse files Browse the repository at this point in the history
  • Loading branch information
lonnieezell committed Oct 4, 2016
1 parent 3759ef9 commit ce07f0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/HTTP/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ protected function fetchGlobal($type, $index = null, $filter = null)
$value = '';
}

if (is_array($value) || is_object($value))
if (is_array($value) || is_object($value) || is_null($value))
{
return $value;
}
Expand Down

0 comments on commit ce07f0c

Please sign in to comment.