Ticket #3572: tiny_mce_gzip.php.2.1.2.patch

File tiny_mce_gzip.php.2.1.2.patch, 777 bytes (added by sunburntkamel, 5 years ago)

updated patch for 2.1.1

  • tiny_mce_gzip.php

     
    129129 
    130130// Check for gzip header or northon internet securities 
    131131if ((in_array('gzip', $encodings) || in_array('x-gzip', $encodings) || isset($_SERVER['---------------'])) && function_exists('ob_gzhandler') && !ini_get('zlib.output_compression')) { 
    132         $enc = in_array('x-gzip', $encodings) ? "x-gzip" : "gzip"; 
    133132 
    134         // Use cached file if it exists but not in debug mode 
    135         if (file_exists($cacheFile) && !$debug) { 
    136                 header("Content-Encoding: " . $enc); 
    137                 echo file_get_contents($cacheFile); 
    138                 die; 
    139         } 
    140  
    141         if (!$diskCache) 
    142                 ob_start("ob_gzhandler"); 
     133         
    143134} else 
    144135        $diskCache = false; 
    145136