diff options
author | Florian Pritz <bluewind@xinu.at> | 2017-05-12 21:50:05 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2017-05-12 21:50:05 +0200 |
commit | d2707dd055538298bd3ccced73ddcfb08d353986 (patch) | |
tree | c8c292f9321b13d1a2d8e490bbb8db5a0ddd6d36 /application/controllers/api | |
parent | a252d6c6fbd2b9989ab630d74ef476fb9e54bcc6 (diff) |
Catch incorrect POST parameters (array vs string)
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers/api')
-rw-r--r-- | application/controllers/api/v2/file.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/application/controllers/api/v2/file.php b/application/controllers/api/v2/file.php index 6eb0ae43b..6f95d5525 100644 --- a/application/controllers/api/v2/file.php +++ b/application/controllers/api/v2/file.php @@ -71,14 +71,14 @@ class file extends \controllers\api\api_controller { public function delete() { $this->muser->require_access("apikey"); - $ids = $this->input->post("ids"); + $ids = $this->input->post_array("ids"); return \service\files::delete($ids); } public function create_multipaste() { $this->muser->require_access("basic"); - $ids = $this->input->post("ids"); + $ids = $this->input->post_array("ids"); $userid = $this->muser->get_userid(); $limits = $this->muser->get_upload_id_limits(); |