mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/9609] Change header() calls setting HTTP status to send_status_line().
PHPBB3-9609
This commit is contained in:
@@ -748,7 +748,7 @@ class session
|
||||
|
||||
if ((int) $row['sessions'] > (int) $config['active_sessions'])
|
||||
{
|
||||
header('HTTP/1.1 503 Service Unavailable');
|
||||
send_status_line(503, 'Service Unavailable');
|
||||
trigger_error('BOARD_UNAVAILABLE');
|
||||
}
|
||||
}
|
||||
@@ -1821,7 +1821,7 @@ class user extends session
|
||||
{
|
||||
if ($this->data['is_bot'])
|
||||
{
|
||||
header('HTTP/1.1 503 Service Unavailable');
|
||||
send_status_line(503, 'Service Unavailable');
|
||||
}
|
||||
|
||||
$message = (!empty($config['board_disable_msg'])) ? $config['board_disable_msg'] : 'BOARD_DISABLE';
|
||||
@@ -1840,7 +1840,7 @@ class user extends session
|
||||
{
|
||||
if ($this->data['is_bot'])
|
||||
{
|
||||
header('HTTP/1.1 503 Service Unavailable');
|
||||
send_status_line(503, 'Service Unavailable');
|
||||
}
|
||||
trigger_error('BOARD_UNAVAILABLE');
|
||||
}
|
||||
|
Reference in New Issue
Block a user