Ticket #3572: tiny_mce_gzip.php.2.1.2.patch
File tiny_mce_gzip.php.2.1.2.patch, 777 bytes (added by , 18 years ago) |
---|
-
tiny_mce_gzip.php
129 129 130 130 // Check for gzip header or northon internet securities 131 131 if ((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";133 132 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 143 134 } else 144 135 $diskCache = false; 145 136