[wp-trac] [WordPress Trac] #54244: wp_check_filetype does not behave correctly on URI's with query strings
WordPress Trac
noreply at wordpress.org
Tue Oct 12 05:12:56 UTC 2021
#54244: wp_check_filetype does not behave correctly on URI's with query strings
--------------------------+-----------------------------
Reporter: Ruxton | Owner: Ruxton
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: Upload | Version: 5.8.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
When files enter this function with filenames that came from URI's, it
does not correctly return a filetype.
eg. image.jpg?thing=1&otherhting=2 will not return an extension as the
filename does not end in .jpg, which the regex requires it to do.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54244>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list