Commit 5bea9121 authored by Taylor Otwell's avatar Taylor Otwell

Refactoring input class to use Request::spoofed when hydrating input.

parent 5bb5adcf
...@@ -103,9 +103,7 @@ class Input { ...@@ -103,9 +103,7 @@ class Input {
case 'PUT': case 'PUT':
case 'DELETE': case 'DELETE':
// The request method can be spoofed by specifying a "REQUEST_METHOD" in the $_POST array. if (Request::spoofed())
// If the method is being spoofed, the $_POST array will be considered the input.
if (isset($_POST['REQUEST_METHOD']) and in_array($_POST['REQUEST_METHOD'], array('PUT', 'DELETE')))
{ {
static::$input =& $_POST; static::$input =& $_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