[wp-trac] [WordPress Trac] #18412: "%20" in an uploaded image file name breaks thumbnails
WordPress Trac
noreply at wordpress.org
Mon May 26 03:47:34 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 kurtpayne):
Replying to [comment:13 SergeyBiryukov]:
> Replying to [comment:12 ericlewis]:
> > 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`?
>
> This seems better to me than double-encoding.
I can get behind this, too. There is a precedent for normalizing
filenames on upload.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/18412#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list