From f5f82fc1b0ae425240d46b101d45af91f322decf Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 13 Jul 2010 12:30:21 +0200 Subject: print nice error instead of html for cli clients Signed-off-by: Florian Pritz --- system/application/controllers/file.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'system') diff --git a/system/application/controllers/file.php b/system/application/controllers/file.php index 8584948b9..c20fb10db 100644 --- a/system/application/controllers/file.php +++ b/system/application/controllers/file.php @@ -38,6 +38,8 @@ class File extends Controller { $this->do_paste(); } elseif ($this->file_mod->id_exists($this->uri->segment(1))) { $this->file_mod->download(); + } elseif ($this->var->cli_client) { + die("No upload or unknown ID requested.\n"); } else { $this->upload_form(); } -- cgit v1.2.3-24-g4f1b