Make WordPress Core


Ignore:
Timestamp:
03/19/2008 08:36:23 PM (16 years ago)
Author:
ryan
Message:

Check return of tmpfile(). see #5586

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-filesystem-ftpext.php

    r7393 r7403  
    153153        }
    154154        $temp = tmpfile();
     155        if ( ! $temp )
     156            return false;
    155157        if( ! @ftp_fget($this->link,$temp,$file,$type,$resumepos) )
    156158            return false;
     
    172174        }
    173175        $temp = tmpfile();
     176        if ( ! $temp )
     177            return false;
    174178        fwrite($temp,$contents);
    175179        fseek($temp, 0); //Skip back to the start of the file being written to
Note: See TracChangeset for help on using the changeset viewer.