Closed Bug 264516 Opened 20 years ago Closed 20 years ago

Everything after a space in a filename in the Content-Disposition:-header is ignored

Categories

(Toolkit :: Downloads API, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 221028

People

(Reporter: toemtoem, Assigned: bugs)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20040913 Firefox/0.10
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20040913 Firefox/0.10

So, everything after a space in a filename in the Content-Disposition:-header is
ignored. When I have "Content-Disposition: Poster 2004.doc", then Firefox asks
me where to save the file "Poster" instead of "POster 2004.doc".

Reproducible: Always
Steps to Reproduce:
1. make a php script that uses a content-disposition: save as step
2. voila
3.

Actual Results:  
Firefox only takes everything before the space.

Expected Results:  
It should take the whole line into account untill the \n
According to RFC 2616, the filename should be enclosed in quotes:

http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1

...but given that IE accepts unquoted strings terminated by a newline, and that
several sites serve files this way (Yahoo! mail, for example), it may be
worthwhile to support unquoted strings.

*** This bug has been marked as a duplicate of 221028 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.