summaryrefslogtreecommitdiffstats
path: root/application/controllers
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-04-04 14:09:15 +0200
committerFlorian Pritz <bluewind@xinu.at>2012-04-09 20:47:26 +0200
commit0ad020ddfb5523745cfddff8318f517d52d63635 (patch)
tree17a1eecc3a3299ecd023f43998977f7b750c53e5 /application/controllers
parent1d544b8955fb176db9fb8ac9d69eb06f2b3454e0 (diff)
Set 404 if a paste doesn't exist
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers')
-rw-r--r--application/controllers/file.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php
index 44f691dec..5fe8a124e 100644
--- a/application/controllers/file.php
+++ b/application/controllers/file.php
@@ -174,6 +174,7 @@ class File extends CI_Controller {
}
if ($id && !$this->file_mod->id_exists($id)) {
+ $this->output->set_status_header(404);
$data["msg"] = "Unknown ID.";
} elseif ($password != "NULL") {
if ($this->file_mod->delete_id($id)) {