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)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 65827

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.
he neglected to mention that the problem only occurs when there isn't a query string following the url.
oopse.. missed some of what he said, nm;)
Fixed in trunk builds. *** This bug has been marked as a duplicate of 65827 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.