Closed
Bug 224656
Opened 21 years ago
Closed 21 years ago
Using Content-Disposition: attachment; filename=file.ext with PHP headers returns file.ext.php
Categories
(SeaMonkey :: General, defect)
Tracking
(Not tracked)
People
(Reporter: malcolm, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 Firebird/0.7
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 Firebird/0.7
With the php code:
header("Content-type: application/force-download"."Content-Length: ");
header("Content-Length: ".filesize("./file.ext"));
header("Content-Disposition: attachment; filename=file.ext");
header("Content-Description: File Transfer");
readfile("./file.ext");
When I brows to this page with a link like:
http://localhost/download.php
I get a download filename of file.ext.php
But if I go to:
http://localhost/download.php?var=value
I get a download filename of file.ext
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1•21 years ago
|
||
he neglected to mention that the problem only occurs when there isn't a query
string following the url.
Comment 2•21 years ago
|
||
oopse.. missed some of what he said, nm;)
Comment 3•21 years ago
|
||
Fixed in trunk builds.
*** This bug has been marked as a duplicate of 65827 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•