[wp-trac] Re: [WordPress Trac] #9761: Use gzdeflate instead of gzdecode in wp-includes/http.php

WordPress Trac wp-trac at lists.automattic.com
Sat May 9 00:54:16 GMT 2009


#9761: Use gzdeflate instead of gzdecode in wp-includes/http.php
--------------------------+-------------------------------------------------
 Reporter:  josephscott   |       Owner:             
     Type:  defect (bug)  |      Status:  new        
 Priority:  normal        |   Milestone:  2.8        
Component:  HTTP          |     Version:  2.8        
 Severity:  normal        |    Keywords:  needs-patch
--------------------------+-------------------------------------------------

Comment(by DD32):

 Oh, And yeah, It needs an extra block put in there for deflating
 mod_deflate content along these lines:

 {{{
 if ( substr($compressed,0,3) == "\x1f\x8b\x08" && false !== ($decompressed
 = gzinflate( substr($compressed,0,3) ) ) )
     return $decompressed;

 $decompressed = gzinflate( $compressed );
 ....
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9761#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list