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:
@@ -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');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user