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
This commit is contained in:
Henry Sudhof 2009-04-14 13:59:12 +00:00
parent ea3c9282b0
commit 7479592c81

View file

@ -670,8 +670,9 @@ function set_modified_headers($stamp, $browser)
{ {
if ($last_load !== false && $last_load <= $stamp) 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); header('Status: 304 Not Modified', true, 304);
} }
else else