[wp-trac] [WordPress Trac] #17061: media_sideload_image() allows upload of 301-redirected non-images

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 29 18:36:32 UTC 2011


#17061: media_sideload_image() allows upload of 301-redirected non-images
--------------------------+------------------------------
 Reporter:  Coolkevman    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  3.1.1
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+------------------------------
Changes (by kurtpayne):

 * cc: kpayne@… (added)
 * keywords:   => needs-patch
 * component:  HTTP => Media


Comment:

 I can confirm this still happens with 3.3 beta 4.  The problem is that the
 type is sniffed from the first URL instead of the content-type of the file
 that was downloaded.

 Related #18730.

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


More information about the wp-trac mailing list