[wp-trac] [WordPress Trac] #62347: wp_get_image_mime does not check that the file exists

WordPress Trac noreply at wordpress.org
Tue Nov 5 11:19:24 UTC 2024


#62347: wp_get_image_mime does not check that the file exists
--------------------------+------------------------------
 Reporter:  Iulia Cazan   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by swissspidy):

 From what I can see at first glance, all the places in core using
 `wp_get_image_mime` do a file existence check beforehand. Maybe a plugin
 of yours doesn't do it, so that would need to be fixed there. Do you have
 a backtrace or so?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62347#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list