From 0ad020ddfb5523745cfddff8318f517d52d63635 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Wed, 4 Apr 2012 14:09:15 +0200 Subject: Set 404 if a paste doesn't exist Signed-off-by: Florian Pritz --- application/controllers/file.php | 1 + 1 file changed, 1 insertion(+) 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)) { -- cgit v1.2.3-24-g4f1b