added check for array in Request::spoofed.

This commit is contained in:
Taylor Otwell
2011-07-09 17:15:23 -05:00
parent 9608a0dee7
commit ceb0e1a807

View File

@@ -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);
}
/**