Ticket #3144: 3144-gzipoptoins-tinymce.patch
File 3144-gzipoptoins-tinymce.patch, 878 bytes (added by , 17 years ago) |
---|
-
tiny_mce_gzip.php
128 128 $encodings = explode(',', strtolower(preg_replace("/\s+/", "", $_SERVER['HTTP_ACCEPT_ENCODING']))); 129 129 130 130 // Check for gzip header or northon internet securities 131 if ((in_array('gzip', $encodings) || in_array('x-gzip', $encodings) || isset($_SERVER['---------------'])) && function_exists('ob_gzhandler') && !ini_get('zlib.output_compression') ) {131 if ((in_array('gzip', $encodings) || in_array('x-gzip', $encodings) || isset($_SERVER['---------------'])) && function_exists('ob_gzhandler') && !ini_get('zlib.output_compression') && get_settings('gzipcompression')) { 132 132 $enc = in_array('x-gzip', $encodings) ? "x-gzip" : "gzip"; 133 133 134 134 // Use cached file if it exists but not in debug mode