Changeset 13132 for trunk/wp-admin/admin-ajax.php
- Timestamp:
- 02/14/2010 02:27:19 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r13088 r13132 94 94 if ( !isset($_SERVER['HTTP_ACCEPT_ENCODING']) ) 95 95 die('-1'); 96 if ( false !== str pos( strtolower($_SERVER['HTTP_ACCEPT_ENCODING']), 'deflate') && function_exists('gzdeflate') && ! $force_gzip ) {96 if ( false !== stripos( $_SERVER['HTTP_ACCEPT_ENCODING'], 'deflate') && function_exists('gzdeflate') && ! $force_gzip ) { 97 97 header('Content-Encoding: deflate'); 98 98 $out = gzdeflate( $test_str, 1 ); 99 } elseif ( false !== str pos( strtolower($_SERVER['HTTP_ACCEPT_ENCODING']), 'gzip') && function_exists('gzencode') ) {99 } elseif ( false !== stripos( $_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') && function_exists('gzencode') ) { 100 100 header('Content-Encoding: gzip'); 101 101 $out = gzencode( $test_str, 1 );
Note: See TracChangeset
for help on using the changeset viewer.