WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 8 years ago

Last modified 8 years ago

#1999 closed defect (bug) (fixed)

Modifying Files of 0 length kick fread error

Reported by: technosailor Owned by: markjaquith
Milestone: Priority: normal
Severity: normal Version: 2.0
Component: Administration Keywords: bg|commit bg|has-patch
Focuses: Cc:

Description

Warning: fread() [function.fread]: Length parameter must be greater than 0. in /home/ebeautyd/public_html/wp-admin/templates.php on line 73

Manage > Files > .htaccess (or any 0-length file.

Attachments (1)

templates.php.diff (424 bytes) - added by technosailor 9 years ago.
adds a conditional to check for empty filesize

Download all attachments as: .zip

Change History (7)

@technosailor9 years ago

adds a conditional to check for empty filesize

comment:1 @davidhouse9 years ago

  • Keywords bg|commit bg|has-patch added

Looks good.

comment:2 @markjaquith8 years ago

  • Milestone set to 2.1
  • Owner changed from anonymous to markjaquith
  • Status changed from new to assigned

comment:3 @markjaquith8 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [4314]) Refrain from reading files of 0 length. Props technosailor. fixes #1999

comment:4 @markjaquith8 years ago

(In [4315]) Refrain from reading files of 0 length. Props technosailor. fixes #1999

comment:5 @markjaquith8 years ago

  • Milestone changed from 2.1 to 2.0.5

comment:6 @anonymous8 years ago

  • Milestone 2.0.5 deleted

Milestone 2.0.5 deleted

Note: See TracTickets for help on using tickets.