aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/download
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2009-04-14 13:59:12 +0000
committerHenry Sudhof <kellanved@phpbb.com>2009-04-14 13:59:12 +0000
commit7479592c81e671d18dc70afbd0ed2514271fe164 (patch)
treee7e3d435a03c49da07b7af5f88a940830e9fa987 /phpBB/download
parentea3c9282b00bbb75a108668492d05c0fd6f80788 (diff)
downloadforums-7479592c81e671d18dc70afbd0ed2514271fe164.tar
forums-7479592c81e671d18dc70afbd0ed2514271fe164.tar.gz
forums-7479592c81e671d18dc70afbd0ed2514271fe164.tar.bz2
forums-7479592c81e671d18dc70afbd0ed2514271fe164.tar.xz
forums-7479592c81e671d18dc70afbd0ed2514271fe164.zip
Some changes to the SAPI detection. The weird fact that it doesn't work without remains.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9448 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/download')
-rw-r--r--phpBB/download/file.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php
index f71afb670e..f7cf0d09e2 100644
--- a/phpBB/download/file.php
+++ b/phpBB/download/file.php
@@ -670,8 +670,9 @@ function set_modified_headers($stamp, $browser)
{
if ($last_load !== false && $last_load <= $stamp)
{
- if (@php_sapi_name() === 'CGI')
+ if (substr(strtolower(@php_sapi_name()),0,3) === 'cgi')
{
+ // in theory, we shouldn't need that due to php doing it. Reality offers a differing opinion, though
header('Status: 304 Not Modified', true, 304);
}
else