Commit ceb0e1a8 by Taylor Otwell

added check for array in Request::spoofed.

parent 9608a0de
......@@ -86,7 +86,7 @@ class Request {
*/
public static function spoofed()
{
return array_key_exists('REQUEST_METHOD', $_POST);
return is_array($_POST) and array_key_exists('REQUEST_METHOD', $_POST);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment