aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2010-09-11 21:55:11 +0200
committerAndreas Fischer <bantu@phpbb.com>2010-09-11 22:01:31 +0200
commitbef108a5cc1cc80068f7066b5c18c5631b8dbc32 (patch)
treeca1aeb7965dfdc8ed8cc103212488f83fd1d1884 /phpBB/includes/functions.php
parentfecca4ef21e15673c4d3fff27e528afbee127a91 (diff)
downloadforums-bef108a5cc1cc80068f7066b5c18c5631b8dbc32.tar
forums-bef108a5cc1cc80068f7066b5c18c5631b8dbc32.tar.gz
forums-bef108a5cc1cc80068f7066b5c18c5631b8dbc32.tar.bz2
forums-bef108a5cc1cc80068f7066b5c18c5631b8dbc32.tar.xz
forums-bef108a5cc1cc80068f7066b5c18c5631b8dbc32.zip
[ticket/9609] Change header() calls setting HTTP status to send_status_line().
PHPBB3-9609
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index c4ff998e69..91edddf5d2 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -3753,7 +3753,7 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
}
// Do not send 200 OK, but service unavailable on errors
- header('HTTP/1.1 503 Service Unavailable');
+ send_status_line(503, 'Service Unavailable');
garbage_collection();
@@ -4223,7 +4223,8 @@ function phpbb_http_login($param)
}
else if ($auth_result['status'] == LOGIN_ERROR_ATTEMPTS)
{
- header('HTTP/1.0 401 Unauthorized');
+ send_status_line(401, 'Unauthorized');
+
trigger_error('NOT_AUTHORISED');
}
}
@@ -4235,7 +4236,7 @@ function phpbb_http_login($param)
$param['auth_message'] = preg_replace('/[\x80-\xFF]/', '?', $param['auth_message']);
header('WWW-Authenticate: Basic realm="' . $param['auth_message'] . '"');
- header('HTTP/1.0 401 Unauthorized');
+ send_status_line(401, 'Unauthorized');
trigger_error('NOT_AUTHORISED');
}