mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
Fixed some problems with gzip in combination with newer PHP versions and Mozilla
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3182 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -35,7 +35,9 @@ if ( $board_config['gzip_compress'] )
|
||||
{
|
||||
$phpver = phpversion();
|
||||
|
||||
if ( $phpver >= '4.0.4pl1' && strstr($HTTP_USER_AGENT,'compatible') )
|
||||
$useragent = (isset($_SERVER["HTTP_USER_AGENT"]) ) ? $_SERVER["HTTP_USER_AGENT"] : $HTTP_USER_AGENT;
|
||||
|
||||
if ( $phpver >= '4.0.4pl1' && ( strstr($useragent,'compatible') || strstr($useragent,'Gecko') ) )
|
||||
{
|
||||
if ( extension_loaded('zlib') )
|
||||
{
|
||||
@@ -129,4 +131,4 @@ $template->assign_vars(array(
|
||||
|
||||
$template->pparse('header');
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Reference in New Issue
Block a user