From 65338d5c5b6e16f4c385083edb2c1f0bd605dd59 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 7 Dec 2010 17:08:48 +0100 Subject: will never be 'file' so don't check Signed-off-by: Florian Pritz --- system/application/controllers/file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system') 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"); -- cgit v1.2.3-24-g4f1b