[wp-trac] [WordPress Trac] #39552: SVG upload support broken in 4.7.1

WordPress Trac noreply at wordpress.org
Thu Jan 19 19:18:17 UTC 2017


#39552: SVG upload support broken in 4.7.1
----------------------------------------+-----------------------
 Reporter:  freakpants                  |       Owner:
     Type:  defect (bug)                |      Status:  reopened
 Priority:  normal                      |   Milestone:  4.7.2
Component:  Upload                      |     Version:  trunk
 Severity:  normal                      |  Resolution:
 Keywords:  needs-unit-tests has-patch  |     Focuses:
----------------------------------------+-----------------------

Comment (by freakpants):

 The line:
 $mime = image_type_to_mime_type( exif_imagetype( $file ) );

 Should be improved anyway to check the result of exif_imagetype before the
 image_type_to_mime_type call.
 exif_imagetype returns false and then gets turned into application/octet-
 stream. That can NOT be the desired result.

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


More information about the wp-trac mailing list