summaryrefslogtreecommitdiffstats
path: root/system/application/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'system/application/controllers')
-rw-r--r--system/application/controllers/file.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/application/controllers/file.php b/system/application/controllers/file.php
index ab3ff5301..3ee6101ea 100644
--- a/system/application/controllers/file.php
+++ b/system/application/controllers/file.php
@@ -40,7 +40,7 @@ class File extends Controller {
$this->do_upload();
} elseif ($this->input->post('content')) {
$this->do_paste();
- } elseif ($this->file_mod->id_exists($id)) {
+ } elseif ($id != "file" && $this->file_mod->id_exists($id)) {
$this->file_mod->download();
} elseif ($this->var->cli_client) {
die("No upload or unknown ID requested.\n");