[wp-trac] [WordPress Trac] #4205: tiny_mce_gzip is getting gzip compressed twice

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 27 15:55:14 GMT 2007


#4205: tiny_mce_gzip is getting gzip compressed twice
---------------------+------------------------------------------------------
 Reporter:  welcomb  |       Owner:  anonymous                      
     Type:  defect   |      Status:  new                            
 Priority:  normal   |   Milestone:  2.2                            
Component:  TinyMCE  |     Version:                                 
 Severity:  normal   |    Keywords:  gzip ob_gzhandler double encode
---------------------+------------------------------------------------------
 Some servers like mine enable gzip on all output by setting
 ''output_handler'' to ''ob_gzhandler'' in php.ini. However zlib is also
 installed thus the check for compression in line 87 of tiny_mce_gzip.php
 both fails. Because function ''ob_gzhandler'' does exist and
 ''zlib.output.compression'' directive is not set.

 This causes tiny_mce_gzip to be encoded twice, resulting in gibberish
 output to the browser.

 To fix, insert an extra condition ''ini_get('output_handler') !=
 'ob_gzhandler' '' to line 87.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4205>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list