mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/7782] Return 404 HTTP status code for nonexistent attachments.
PHPBB3-7782
This commit is contained in:
parent
d721e94b88
commit
c185e45e09
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue