[wp-trac] [WordPress Trac] #18412: "%20" in an uploaded image file name breaks thumbnails
WordPress Trac
noreply at wordpress.org
Sun May 25 21:04:51 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:10 ericlewis]:
> This seems like a bizarre solution. @kurtpayne still think this is the
way to go?
The general answer to these types of problems is to double-encode or use a
token replacement (e.g. '-real-percent-plz-'), encode, then replace the
token with the original character afterwards.
For example, check out the usage of `<WPPreserveNewline />`:
https://github.com/WordPress/WordPress/blob/master/wp-
includes/formatting.php#L320
--
Ticket URL: <https://core.trac.wordpress.org/ticket/18412#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list