using strpos instead of regular expressions
This commit is contained in:
parent
5f7f13d3ee
commit
f96b24bb3c
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
if(ereg('gzip', getenv('HTTP_ACCEPT_ENCODING')) &&
|
||||
if(strpos(getenv('HTTP_ACCEPT_ENCODING'), 'gzip') !== false &&
|
||||
!ini_get('zlib.output_compression'))
|
||||
{
|
||||
ob_start('ob_gzhandler');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue