#2988 closed defect (bug) (fixed)
Suspected fread data loss bug in class-snoopy.php fix
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.0.4 |
Component: | Administration | Keywords: | |
Focuses: | Cc: |
Description
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.
Note: See
TracTickets for help on using
tickets.
Right you are. Luckily, traversing the loop more than once should be rare.