mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00: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:
parent
d064cf79aa
commit
9d46d7b06c
3 changed files with 8 additions and 3 deletions
|
@ -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');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -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') )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue