summaryrefslogtreecommitdiffstats
path: root/application/controllers/file/multipaste.php
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/file/multipaste.php
parenta252d6c6fbd2b9989ab630d74ef476fb9e54bcc6 (diff)
Catch incorrect POST parameters (array vs string)
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers/file/multipaste.php')
-rw-r--r--application/controllers/file/multipaste.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/application/controllers/file/multipaste.php b/application/controllers/file/multipaste.php
index 759a781f0..50367697c 100644
--- a/application/controllers/file/multipaste.php
+++ b/application/controllers/file/multipaste.php
@@ -19,7 +19,7 @@ class Multipaste extends MY_Controller {
public function append_multipaste_queue() {
$this->muser->require_access("basic");
- $ids = $this->input->post("ids");
+ $ids = $this->input->post_array("ids");
if ($ids === false) {
$ids = [];
}
@@ -55,7 +55,7 @@ class Multipaste extends MY_Controller {
public function form_submit() {
$this->muser->require_access("basic");
- $ids = $this->input->post('ids');
+ $ids = $this->input->post_array('ids');
$process = $this->input->post('process');
if ($ids === false) {
@@ -87,7 +87,7 @@ class Multipaste extends MY_Controller {
public function ajax_submit() {
$this->muser->require_access("basic");
- $ids = $this->input->post('ids');
+ $ids = $this->input->post_array('ids');
if ($ids === false) {
$ids = [];