From 1ac1364fd5842ab82b768f5668578de058dcc8ff Mon Sep 17 00:00:00 2001 From: printempw Date: Wed, 10 Feb 2016 15:07:55 +0800 Subject: [PATCH] return 404 if texture no longer exists --- includes/User.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/User.class.php b/includes/User.class.php index b4c92e69..f9768f49 100644 --- a/includes/User.class.php +++ b/includes/User.class.php @@ -3,7 +3,7 @@ * @Author: printempw * @Date: 2016-01-16 23:01:33 * @Last Modified by: prpr - * @Last Modified time: 2016-02-08 22:02:53 + * @Last Modified time: 2016-02-10 15:07:08 */ class User @@ -98,6 +98,7 @@ class User header('Content-Length: '.filesize($filename)); return Utils::fread($filename); } else { + header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found"); Utils::raise(-1, 'Texture no longer exists.'); } }