[wp-trac] [WordPress Trac] #2988: Suspected fread data loss bug in class-snoopy.php fix

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 31 14:47:07 GMT 2006


#2988: Suspected fread data loss bug in class-snoopy.php fix
----------------------------+-----------------------------------------------
 Reporter:  cschneid        |       Owner:  anonymous
     Type:  defect          |      Status:  new      
 Priority:  normal          |   Milestone:           
Component:  Administration  |     Version:           
 Severity:  normal          |    Keywords:           
----------------------------+-----------------------------------------------
 I think the following should be done on line 1241 in wp-includes/class-
 snoopy.php:

 {{{
  while (!feof($fp)) {
 -  $file_content = fread($fp, filesize($file_name));
 +  $file_content .= fread($fp, filesize($file_name));
  }
 }}}

 i.e. concatenate the read data instead of just using the last part.

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


More information about the wp-trac mailing list