Opened 5 years ago
Closed 5 years ago
#54244 closed defect (bug) (duplicate)
wp_check_filetype does not behave correctly on URI's with query strings
| Reported by: | Ruxton | Owned by: | Ruxton |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Upload | Version: | 5.8.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
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.
Change History (2)
This ticket was mentioned in PR #1750 on WordPress/wordpress-develop by Ruxton.
5 years ago
#1
- Keywords has-patch added
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
wp_check_filetype now works when filename does not end in extension.
Used when a filename came from a URI and contains query strings.
Trac ticket: https://core.trac.wordpress.org/ticket/54244