added check for array in Request::spoofed.
This commit is contained in:
parent
9608a0dee7
commit
ceb0e1a807
|
@ -86,7 +86,7 @@ public static function method()
|
|||
*/
|
||||
public static function spoofed()
|
||||
{
|
||||
return array_key_exists('REQUEST_METHOD', $_POST);
|
||||
return is_array($_POST) and array_key_exists('REQUEST_METHOD', $_POST);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue