mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/7782] Send 404 HTTP code when a nonexistent user/forum/topic is requested.
PHPBB3-7782
This commit is contained in:
committed by
Nils Adermann
parent
cb3cf71805
commit
82ce29ac58
@@ -3628,6 +3628,11 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
|
||||
$user->setup();
|
||||
}
|
||||
|
||||
if ($msg_text == 'NO_FORUM' || $msg_text == 'NO_TOPIC' || $msg_text == 'NO_USER')
|
||||
{
|
||||
header("HTTP/1.x 404 Not Found");
|
||||
}
|
||||
|
||||
$msg_text = (!empty($user->lang[$msg_text])) ? $user->lang[$msg_text] : $msg_text;
|
||||
$msg_title = (!isset($msg_title)) ? $user->lang['INFORMATION'] : ((!empty($user->lang[$msg_title])) ? $user->lang[$msg_title] : $msg_title);
|
||||
|
||||
|
Reference in New Issue
Block a user