mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-04 07:47:34 +02:00
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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user