1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-03 15:27:42 +02:00

[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();
}
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');
}