WordPress.org

Make WordPress Core

Opened 11 years ago

Closed 10 years ago

Last modified 10 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 11 years ago.
adds a conditional to check for empty filesize

Download all attachments as: .zip

Change History (7)

@technosailor
11 years ago

adds a conditional to check for empty filesize

#1 @davidhouse
10 years ago

  • Keywords bg|commit bg|has-patch added

Looks good.

#2 @markjaquith
10 years ago

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

#3 @markjaquith
10 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

#4 @markjaquith
10 years ago

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

#5 @markjaquith
10 years ago

  • Milestone changed from 2.1 to 2.0.5

#6 @anonymous
10 years ago

  • Milestone 2.0.5 deleted

Milestone 2.0.5 deleted

Note: See TracTickets for help on using tickets.