summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2010-12-07 17:08:48 +0100
committerFlorian Pritz <bluewind@xssn.at>2010-12-07 17:08:48 +0100
commit65338d5c5b6e16f4c385083edb2c1f0bd605dd59 (patch)
treefebbb2705c28bd72c2a7c45c98d2c5e8db7ee41a
parent305092987b35e89a7ab08d7180c68d09074800d9 (diff)
will never be 'file' so don't check
Signed-off-by: Florian Pritz <bluewind@xssn.at>
-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");