aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2011-02-09 02:14:46 -0500
committerOleg Pudeyev <oleg@bsdpower.com>2011-02-09 02:19:50 -0500
commit0e861ac3ab0513ec1c00354bfc8fc8492aa6573c (patch)
tree3d9893f7c40d4d72e3da748c44ad4dabeb73136c /phpBB/includes/functions.php
parentb414a4d107b3baa4b6d2f600e6f52211359ec3a5 (diff)
downloadforums-0e861ac3ab0513ec1c00354bfc8fc8492aa6573c.tar
forums-0e861ac3ab0513ec1c00354bfc8fc8492aa6573c.tar.gz
forums-0e861ac3ab0513ec1c00354bfc8fc8492aa6573c.tar.bz2
forums-0e861ac3ab0513ec1c00354bfc8fc8492aa6573c.tar.xz
forums-0e861ac3ab0513ec1c00354bfc8fc8492aa6573c.zip
[ticket/10029] Use $_SERVER['SERVER_PROTOCOL'] for determining HTTP version.
PHPBB3-10029
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 9a8cc5d6b3..398a02380b 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -2631,8 +2631,14 @@ function send_status_line($code, $message)
}
else
{
- if (isset($_SERVER['HTTP_VERSION']))
+ if (!empty($_SERVER['SERVER_PROTOCOL']))
{
+ $version = $_SERVER['SERVER_PROTOCOL'];
+ }
+ else if (!empty($_SERVER['HTTP_VERSION']))
+ {
+ // I cannot remember where I got this from.
+ // This code path may never be reachable in reality.
$version = $_SERVER['HTTP_VERSION'];
}
else