[wp-trac] [WordPress Trac] #18412: "%20" in an uploaded image file name breaks thumbnails
WordPress Trac
noreply at wordpress.org
Sun May 25 22:47:20 UTC 2014
#18412: "%20" in an uploaded image file name breaks thumbnails
--------------------------+------------------------------
Reporter: ripperdoc | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 2.1
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Comment (by ericlewis):
Cool, thanks for the detail.
So, if you upload a file named `Eric%20Lewis.jpg` the URL would end up as
`siteurl.com/wp-content/uploads/2014/05/Eric%2520Lewis.jpg`.
Should we be URL-unencoding before naming the file on the server, so if I
upload `Eric%20Lewis.jpg`, the file on the server would be
`/path/to/uploads/dir/Eric Lewis.jpg` and the URL `siteurl.com/wp-
content/uploads/2014/05/Eric%20Lewis.jpg`?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/18412#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list