[wp-trac] [WordPress Trac] #30377: wp_check_filetype is broken when checking urls with parameters

WordPress Trac noreply at wordpress.org
Tue Nov 18 15:55:39 UTC 2014


#30377: wp_check_filetype is broken when checking urls with parameters
--------------------------+------------------
 Reporter:  supercleanse  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.1
Component:  Media         |     Version:  4.0
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------
Changes (by voldemortensen):

 * keywords:  needs-patch needs-unit-tests => has-patch


Comment:

 [attachment:30377.diff] updates the regex to correctly identify file type
 and adds unit tests.

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


More information about the wp-trac mailing list