diff options
author | Florian Pritz <bluewind@xssn.at> | 2010-07-13 12:30:21 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xssn.at> | 2010-07-13 12:30:44 +0200 |
commit | f5f82fc1b0ae425240d46b101d45af91f322decf (patch) | |
tree | ff55da3a52de22cffdf0bb80b2f8da62fa4ad132 | |
parent | 7814723286dedc5aeef3f0f287b4b2256fbbc2a7 (diff) |
print nice error instead of html for cli clients
Signed-off-by: Florian Pritz <bluewind@xssn.at>
-rw-r--r-- | system/application/controllers/file.php | 2 |
1 files changed, 2 insertions, 0 deletions
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(); } |