diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-05-29 12:27:06 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-05-29 12:27:06 +0200 |
commit | 8b635cd7b7618828bdcb8e377391d3e59070b5cf (patch) | |
tree | 179a28976f979f7aeb331d8380e4380896e45636 /lib | |
parent | 2d24ad53c6d3e8925cd516b75b795b4a84551f54 (diff) | |
parent | b2903485c0b63f80a6927507ee650fdaae47e999 (diff) | |
download | nextcloud-server-8b635cd7b7618828bdcb8e377391d3e59070b5cf.tar.gz nextcloud-server-8b635cd7b7618828bdcb8e377391d3e59070b5cf.zip |
Merge pull request #16117 from owncloud/fix-api-when-firewall-app-is-installed
Use existing IRequest to not read php://input multiple times
Diffstat (limited to 'lib')
-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 |