[wp-trac] [WordPress Trac] #30377: wp_check_filetype is broken when checking urls with parameters
WordPress Trac
noreply at wordpress.org
Sun Nov 30 06:32:18 UTC 2014
#30377: wp_check_filetype is broken when checking urls with parameters
-------------------------------------+-----------------------------
Reporter: supercleanse | Owner: wonderboymusic
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.1
Component: Media | Version: 4.0
Severity: normal | Resolution: fixed
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+-----------------------------
Changes (by wonderboymusic):
* owner: => wonderboymusic
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"30640"]:
{{{
#!CommitTicketReference repository="" revision="30640"
Adjust the RegEx in `wp_check_filetype()` to be aware that query strings
are thing that exist sometimes in URLs.
Adds unit tests.
Props voldemortensen.
Fixes #30377.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30377#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list