diff options
-rw-r--r-- | lib/private/api.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/api.php b/lib/private/api.php index c58d2620684..3cdafe9af11 100644 --- a/lib/private/api.php +++ b/lib/private/api.php @@ -86,9 +86,9 @@ class OC_API { public static function call($parameters) { // Prepare the request variables if($_SERVER['REQUEST_METHOD'] == 'PUT') { - parse_str(file_get_contents("php://input"), $parameters['_put']); + $parameters['_put'] = \OC::$server->getRequest()->getParams(); } else if($_SERVER['REQUEST_METHOD'] == 'DELETE') { - parse_str(file_get_contents("php://input"), $parameters['_delete']); + $parameters['_delete'] = \OC::$server->getRequest()->getParams(); } $name = $parameters['_route']; // Foreach registered action |