summaryrefslogtreecommitdiffstats
path: root/application/controllers
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-05-10 14:42:40 +0200
committerFlorian Pritz <bluewind@xinu.at>2012-05-10 14:42:40 +0200
commit82f6b5feb8f698b94cab52bcadefa6130d7f47f7 (patch)
tree99030855983ab5fff74096191de0f34fe4160bbf /application/controllers
parentacfc673999bd23c47156d72d6cc985b0194a2e1c (diff)
Prevent browsers from deleting files
CLI clients are expected to only request deletion when the users wants it. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers')
-rw-r--r--application/controllers/file.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php
index 2a56df96c..0848d7470 100644
--- a/application/controllers/file.php
+++ b/application/controllers/file.php
@@ -224,6 +224,11 @@ class File extends CI_Controller {
{
$this->muser->require_access();
+ if (!$this->var->cli_client) {
+ echo "Not a listed cli client, please use the history to delete uploads.\n";
+ return;
+ }
+
$id = $this->uri->segment(3);
$this->data["id"] = $id;