Opened 16 years ago
Closed 15 years ago
#9081 closed defect (bug) (fixed)
Upload Media: "Title" should not be overly sanitized
Reported by: | mdawaffe | Owned by: | |
---|---|---|---|
Milestone: | 2.8 | Priority: | normal |
Severity: | normal | Version: | 2.7 |
Component: | Upload | Keywords: | has-patch tested commit |
Focuses: | Cc: |
Description
When I upload an image called "Me and My Dread God of Rocking Chairs.JPG", it gets stored on my webserver as "me-and-my-dread-god-of-rocking-chairs.jpg". This is the correct behavior.
However, the post_title
of the attachment is also sent through sanitize_with_dashes()
, which is unnecessary.
Expected:
post_title = "Me and My Dread God of Rocking Chairs"
Attachments (3)
Change History (15)
@
15 years ago
title should be the name (related to the filename of the upload) and not the newfilename (The one in fs then)
#3
@
15 years ago
Check against Trunk: Still defect in trunk (/wp-admin/media-new.php)
Found the cause. See patch.
#4
@
15 years ago
- Keywords has-patch developer-feedback reporter-feedback needs-testing added; needs-patch removed
#5
@
15 years ago
- Keywords needs-patch added; has-patch developer-feedback reporter-feedback needs-testing removed
My Test.jpg gets a title of My Test.jp with the current patch
#9
@
15 years ago
Yeah, you are pushing forward :D. Tested that/similar on sidux, you raised my interest. But that does not break the patch but the $_FILES array. That can not handle \ in filenames at least here on an apache running on win32. You can see that in the filename as well. So nothing to fix about that. And no way to retrieve that data whatsoever.
I'm pretty certain there's a dup of this in trac.