summaryrefslogtreecommitdiffstats
path: root/system/application/controllers
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2010-07-13 12:30:21 +0200
committerFlorian Pritz <bluewind@xssn.at>2010-07-13 12:30:44 +0200
commitf5f82fc1b0ae425240d46b101d45af91f322decf (patch)
treeff55da3a52de22cffdf0bb80b2f8da62fa4ad132 /system/application/controllers
parent7814723286dedc5aeef3f0f287b4b2256fbbc2a7 (diff)
print nice error instead of html for cli clients
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'system/application/controllers')
-rw-r--r--system/application/controllers/file.php2
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();
}