#2988 closed defect (bug) (fixed)
Suspected fread data loss bug in class-snoopy.php fix
| Reported by: | cschneid | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Administration | Version: | 2.0.4 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Right you are. Luckily, traversing the loop more than once should be rare.