Open
Bug 335263
Opened 19 years ago
Updated 2 years ago
Linked file in HTML email with ampersands (&) in file name cannot be saved with correct name, needs escaping (multipart/related; content-disposition:attachment)
Categories
(Thunderbird :: Mail Window Front End, defect)
Tracking
(Not tracked)
NEW
People
(Reporter: gary, Unassigned)
Details
Attachments
(1 file)
583 bytes,
message/rfc822
|
Details |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060413 Ubuntu/dapper Epiphany/2.14 Firefox/1.5.0.1
Build Identifier: Mail/News 1.5 (X11/20060309) -- current Ubuntu dapper mozilla-thunderbird 1.5-0ubuntu6
If you take a mail like the one below, and click on the link in the HTML view, the wrong name is used (everything from the ampersand onwards is stripped).
From: <gary@lyranthe.org>
To: <gary@lyranthe.org>
Subject: Test
Content-Type: multipart/alternative;
boundary="===1testboundary"
--===1testboundary
Content-Type: multipart/related;
boundary="===2testboundary"
--===2testboundary
Content-Type: text/html; charset="utf-8"
<html>
<body>
<a href="cid:file.txt">file.txt</a>
</body>
</html>
--===2testboundary
Content-Type: text/plain
Content-ID: <file.txt>
Content-Disposition: attachment; filename="a&b.txt"
Content-Type: text/plain; Name="a&b.txt"
This is a test
--===2testboundary--
--===1testboundary--
Reproducible: Always
Steps to Reproduce:
1. Use the above email
2. Click on 'file.txt'.
Actual Results:
The save dialog says:
You have chosen to open 'a' which is a: ASC file.
Expected Results:
The save dialog says:
You have chosen to open 'a&b.txt' which is a: text file.
Updated•18 years ago
|
QA Contact: front-end
Updated•16 years ago
|
Assignee: mscott → nobody
![]() |
||
Comment 1•16 years ago
|
||
Reporter, does the issue still occur in the latest supported 2.0.0.x / Shredder trunk nightlies?
(1.5.0.x is now end-of-life and the latest supported 2.0.0.x is 2.0.0.16)
Whiteboard: closeme 2008-09-18
Comment 2•16 years ago
|
||
RESO INCO per lack of response to last comment. If you feel this change was made in error, please respond to this bug with your reasons why.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → INCOMPLETE
Reporter | ||
Comment 3•16 years ago
|
||
Tried it out, yes it still fails (at least when accessing the mail via IMAP).
The link shown on the status bar when hovering over the link is:
imap://user@server:143/fetch>UID>.INBOX>1997?part=1.1.2&filename=a&b.txt
Wherever this URI is generated, perhaps the filename should be URL-escaped.
Thunderbird version now: version 2.0.0.16 (20080724)
Ubuntu package 2.0.0.16+nobinonly-0ubuntu0.8.04.1
Severity: normal → minor
Status: RESOLVED → UNCONFIRMED
Resolution: INCOMPLETE → ---
Whiteboard: closeme 2008-09-18
Version: unspecified → 2.0
Comment 5•12 years ago
|
||
No dupes found -> confirming
There might be better searches for dupes than this one:
Quicksearch for :thun,mail su:&,amp su:link,part,file
https://bugzilla.mozilla.org/buglist.cgi?quicksearch=%3Athun%2Cmail%20su%3A%26%2Camp%20su%3Alink%2Cpart%2Cfile;list_id=4193389
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Hardware: x86 → All
Updated•12 years ago
|
Status: NEW → UNCONFIRMED
Ever confirmed: false
OS: All → Linux
Hardware: All → x86
Summary: Linked file in HTML email with ampersands in name cannot be saved with correct name → Linked file in HTML email with ampersands (&) in file name cannot be saved with correct name, needs escaping (multipart/related; content-disposition:attachment)
Updated•12 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Hardware: x86 → All
Updated•2 years ago
|
Severity: minor → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•