[wp-trac] [WordPress Trac] #16226: Attachment URL filenames are not urlencoded
WordPress Trac
wp-trac at lists.automattic.com
Mon Jul 18 15:26:26 UTC 2011
#16226: Attachment URL filenames are not urlencoded
------------------------------------+-----------------------------
Reporter: mdawaffe | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Upload | Version: 3.2
Severity: normal | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+-----------------------------
Changes (by simonwheatley):
* keywords: has-patch => has-patch dev-feedback
* version: 3.1 => 3.2
Comment:
It seems to me that the simplest thing to do for these edge cases (albeit
that I've just had a real user complaining about a file with a "+" in the
filename not uploading) is to strip "+" and "%" in the
```sanitise_file_name``` function. I'm attaching a patch which does just
this.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16226#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list