Opened 19 years ago
Closed 19 years ago
#4974 closed defect (bug) (fixed)
Invalid names generated for uploads with unknown extensions
| Reported by: | Nazgul | Owned by: | markjaquith |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.3 |
| Component: | General | Version: | 2.3 |
| Severity: | normal | Keywords: | has-patch needs-testing dev-reviewed |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.