[ticket/7782] Return 404 HTTP status code for nonexistent attachments.

PHPBB3-7782
This commit is contained in:
Oleg Pudeyev 2010-05-17 14:14:53 -04:00
parent d721e94b88
commit c185e45e09

View file

@ -3662,7 +3662,7 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
$user->setup(); $user->setup();
} }
if ($msg_text == 'NO_FORUM' || $msg_text == 'NO_TOPIC' || $msg_text == 'NO_USER') if ($msg_text == 'ERROR_NO_ATTACHMENT' || $msg_text == 'NO_FORUM' || $msg_text == 'NO_TOPIC' || $msg_text == 'NO_USER')
{ {
send_status_line(404, 'Not Found'); send_status_line(404, 'Not Found');
} }