mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
Continuing to clean up Input class.
This commit is contained in:
parent
0e02a8a53d
commit
6fc0770bce
@ -103,8 +103,10 @@ 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.
|
// The request method can be spoofed by specifying a "REQUEST_METHOD" in the $_POST array.
|
||||||
// If the method is being spoofed, the $_POST array will be considered the input.
|
// 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')))
|
if (isset($_POST['REQUEST_METHOD']) and in_array($_POST['REQUEST_METHOD'], array('PUT', 'DELETE')))
|
||||||
{
|
{
|
||||||
static::$input =& $_POST;
|
static::$input =& $_POST;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user