Closed Bug 246184 Opened 21 years ago Closed 21 years ago

Extension ".exe." not recognized as ".exe"

Categories

(Toolkit :: Downloads API, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 246280

People

(Reporter: janmoesen_=-bugzilla-=+spamtrap, Assigned: bugs)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040607 Firefox/0.8.0+ (MOOX-AV) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040607 Firefox/0.8.0+ (MOOX-AV) When trying to download a file with an on-server extension of ".exe.", the download manager does not recognize it as being the same as ".exe". On Windows you can't have a filename end with a ".", it just gets stripped. That means that ".exe." yields ".exe", which is an application. The DM does not recognize it as such, and enables the "Open with" option. Reproducible: Always Steps to Reproduce: 1. Download a file ending in ".exe." (http://jan.moesen.nu/tempz0r/nc.exe.) 2. Choose "Open With" without specifying anything Actual Results: It ran the executable. Expected Results: Give the usual executable warning. In .htaccess, I added these lines: <Files nc.exe.> ForceType application/octet-stream </Files> AddIcon /icons/binary.gif .exe. The Content-Type is the same for "nc.exe." as for "nc.exe": "application/octet-stream". The executable is netcat, but that doesn't matter here. I realize this is not something likely to occur in the wild. FWIW, IE's behaviour is even stranger: it saves the file without an extension ("nc[1]").
Sorry, should have been Firefox instead of Browser.
Product: Browser → Firefox
Version: Trunk → unspecified
Assignee: download-manager → bugs
QA Contact: aebrahim
Filed bug 246267 for seamonkey
Confirming, and stealing description from bug 246267.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Based on comments in bug 246280, it sounds like this bug was fixed there. *** This bug has been marked as a duplicate of 246280 ***
Status: NEW → RESOLVED
Closed: 21 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.