summaryrefslogtreecommitdiffstats
path: root/application/controllers/api/v2
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-05-12 21:50:05 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-05-12 21:50:05 +0200
commitd2707dd055538298bd3ccced73ddcfb08d353986 (patch)
treec8c292f9321b13d1a2d8e490bbb8db5a0ddd6d36 /application/controllers/api/v2
parenta252d6c6fbd2b9989ab630d74ef476fb9e54bcc6 (diff)
Catch incorrect POST parameters (array vs string)
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers/api/v2')
-rw-r--r--application/controllers/api/v2/file.php4
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();