Opened 18 years ago
Closed 18 years ago
#4974 closed defect (bug) (fixed)
Invalid names generated for uploads with unknown extensions
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.3 | Priority: | normal |
Severity: | normal | Version: | 2.3 |
Component: | General | Keywords: | has-patch needs-testing dev-reviewed |
Focuses: | Cc: |
Description
It is possible for someone with the unfiltered_upload capability to upload attachments with unknown extensions. There is a bug which generates the filename in that instance, which results in a file called test.phps to be uploades as testphps..phps.
This is caused by the extension guesing code leaving the . before the extension, which is added again later on, making a few replaces fail.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Verified the issue, verified that the patch fixes it.
Verified that this patch doesn't allow users without unfiltered_upload to upload unknown attachment types.
Someone else take a look at it to make sure I didn't miss a "gotcha," and we can get this in.