Ticket #1999 (closed defect (bug): fixed)

Opened 6 years ago

Last modified 5 years ago

Modifying Files of 0 length kick fread error

Reported by: technosailor Owned by: markjaquith
Priority: normal Milestone:
Component: Administration Version: 2.0
Severity: normal Keywords: bg|commit bg|has-patch
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

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

Change History

adds a conditional to check for empty filesize

  • Keywords bg|commit bg|has-patch added

Looks good.

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

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

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

  • Milestone changed from 2.1 to 2.0.5
  • Milestone 2.0.5 deleted

Milestone 2.0.5 deleted

Note: See TracTickets for help on using tickets.