[wp-trac] [WordPress Trac] #17814: wp_load_image() attempts to load directories

WordPress Trac noreply at wordpress.org
Thu Nov 8 02:02:04 UTC 2012


#17814: wp_load_image() attempts to load directories
--------------------------+---------------------
 Reporter:  primehalo     |       Owner:  nacin
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  3.5
Component:  Media         |     Version:  3.1.3
 Severity:  minor         |  Resolution:  fixed
 Keywords:  has-patch     |
--------------------------+---------------------
Changes (by nacin):

 * owner:   => nacin
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"22463"]:
 {{{
 #!CommitTicketReference repository="" revision="22463"
 In WP_Image_Editor / wp_load_image(), use is_file() rather than
 file_exists() so we do not accidentally load a directory.

 props benkulbertis, DH-Shredder, scribu.
 fixes #17814.
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17814#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list