Closed Bug 220832 Opened 21 years ago Closed 21 years ago

Url extension gets added to the filename specified in content-disposition if it doesn't have one.

Categories

(Core Graveyard :: File Handling, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.6alpha

People

(Reporter: amla70, Assigned: Biesinger)

References

()

Details

(Whiteboard: alternate url: http://biesi.damowmow.com/mime.php?do=1&type=application/octet-stream&disposition=attachment&filename=noext&quote=1&)

Attachments

(1 file)

this is a variant of Bug 65827, the filename of the content-disposition header
doesn't have an extension and it's sent as application-octect stream, but if the
page is called without any parameter then Mozilla (Mozilla/5.0 (Windows; U;
Windows NT 5.1; en-US; rv:1.6a) Gecko/20030930) adds .asp to the suggested filename.

(the testcase now doesn't have spaces and it's properly quoted)
Attachment #132651 - Flags: review?(bzbarsky)
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.6alpha
Comment on attachment 132651 [details] [diff] [review]
patch

r=bzbarsky.  This should do the trick, yes.
Attachment #132651 - Flags: review?(bzbarsky) → review+
Attachment #132651 - Flags: superreview?(darin)
Whiteboard: biesi_testcase:http://192.168.1.1/~chb/testcase/disp_no_fn.php
Comment on attachment 132651 [details] [diff] [review]
patch

sr=darin
Attachment #132651 - Flags: superreview?(darin) → superreview+
Checking in nsExternalHelperAppService.cpp;
/cvsroot/mozilla/uriloader/exthandler/nsExternalHelperAppService.cpp,v  <-- 
nsExternalHelperAppService.cpp
new revision: 1.226; previous revision: 1.225
done
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Whiteboard: biesi_testcase:http://192.168.1.1/~chb/testcase/disp_no_fn.php → alternate url: http://biesi.damowmow.com/mime.php?do=1&type=application/octet-stream&disposition=attachment&filename=noext&quote=1&
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: