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

WordPress Trac noreply at wordpress.org
Mon Mar 7 22:50:36 UTC 2022


#30377: wp_check_filetype is broken when checking urls with parameters
-------------------------------------------------+-------------------------
 Reporter:  supercleanse                         |       Owner:  audrasjb
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  6.0
Component:  Media                                |     Version:  4.0
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests needs-dev-  |     Focuses:
  note commit                                    |
-------------------------------------------------+-------------------------
Changes (by audrasjb):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"52829" 52829]:
 {{{
 #!CommitTicketReference repository="" revision="52829"
 Media: Allow `wp_check_filetype()` to support query strings in URLs.

 This changeset adjusts the regex in `wp_check_filetype()` to support query
 strings in URLs.

 Follow-up to [30640], [32172].

 Props voldemortensen, johnbillion, layotte, dd32, atomicjack,
 supercleanse, spencercameron, ianmjones, audrasjb.
 Fixes #30377.
 }}}

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


More information about the wp-trac mailing list