Make WordPress Core


Ignore:
Timestamp:
04/27/2007 08:55:05 PM (19 years ago)
Author:
rob1n
Message:

Don't double encode gzip output if gzip is already set in php.ini. Props
welcomb. fixes #4205

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/tinymce/tiny_mce_gzip.php

    r5114 r5333  
    8585        $encodings = explode(',', strtolower(preg_replace("/\s+/", "", $_SERVER['HTTP_ACCEPT_ENCODING'])));
    8686
    87     if ((in_array('gzip', $encodings) || in_array('x-gzip', $encodings) || isset($_SERVER['---------------'])) && function_exists('ob_gzhandler') && !ini_get('zlib.output_compression')) {
     87    if ((in_array('gzip', $encodings) || in_array('x-gzip', $encodings) || isset($_SERVER['---------------'])) && function_exists('ob_gzhandler') && !ini_get('zlib.output_compression') && ini_get('output_handler') != 'ob_gzhandler') {
    8888        $enc = in_array('x-gzip', $encodings) ? "x-gzip" : "gzip";
    8989        $supportsGzip = true;
Note: See TracChangeset for help on using the changeset viewer.