Make WordPress Core

Changeset 5372


Ignore:
Timestamp:
05/02/2007 02:36:44 AM (17 years ago)
Author:
rob1n
Message:

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

File:
1 edited

Legend:

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

    r5114 r5372  
    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.