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:
Bart van Bragt 2002-12-10 11:13:58 +00:00
parent d064cf79aa
commit 9d46d7b06c
3 changed files with 8 additions and 3 deletions

View file

@ -35,7 +35,9 @@ if ( $board_config['gzip_compress'] )
{ {
$phpver = phpversion(); $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') ) if ( extension_loaded('zlib') )
{ {
@ -129,4 +131,4 @@ $template->assign_vars(array(
$template->pparse('header'); $template->pparse('header');
?> ?>

View file

@ -138,6 +138,7 @@ h3 {font-size:12pt;color:blue}
<li>Fixed incomplete deletion of PMs when removing the associated user</li> <li>Fixed incomplete deletion of PMs when removing the associated user</li>
<li>Fixed unread and new PM user counters to decrement appropriately in all situations</li> <li>Fixed unread and new PM user counters to decrement appropriately in all situations</li>
<li>Fixed possible cross-site scripting issue with username search</li> <li>Fixed possible cross-site scripting issue with username search</li>
<li>Fixed some problems with gzip in combination with newer PHP versions and Mozilla</li>
<li></li> <li></li>
</ul> </ul>

View file

@ -35,7 +35,9 @@ if ( $board_config['gzip_compress'] )
{ {
$phpver = phpversion(); $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') ) if ( extension_loaded('zlib') )
{ {