[wp-trac] [WordPress Trac] #11912: missing check in WP_Http_Encoding::decompress() leads to gzuncompress errors (was: gzuncompress errors in WP_Http_Encoding::decompress())

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 15 21:40:04 UTC 2010


#11912: missing check in WP_Http_Encoding::decompress() leads to gzuncompress
errors
--------------------------+-------------------------------------------------
 Reporter:  rowanbeentje  |       Owner:  dd32       
     Type:  defect (bug)  |      Status:  new        
 Priority:  normal        |   Milestone:  3.0        
Component:  HTTP          |     Version:  2.9.1      
 Severity:  normal        |    Keywords:  needs-patch
--------------------------+-------------------------------------------------
Changes (by Denis-de-Bernardy):

  * keywords:  gzuncompress decompress http cron => needs-patch
  * milestone:  Unassigned => 3.0


Comment:

 Looks like a check is potentially missing:

 http://php.net/manual/en/function.substr.php

 If string is less than or equal to start characters long, FALSE will be
 returned.

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


More information about the wp-trac mailing list