Closed Bug 246267 Opened 21 years ago Closed 21 years ago

[Seamonkey] Trailing period causes extension protection code to fail (e.g. "nc.exe.")

Categories

(SeaMonkey :: Download & File Handling, defect)

x86
Windows XP
defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: timeless, Assigned: neil)

References

()

Details

Confirmed using mozilla 1.7b branch. From Firefox bug 246184: 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.) A. Open With 2a. Choose "Open With" without specifying anything B. Download Manager 2b. Choose "Save to disk" 3b. Pick a file location and click Save 4b. Click Launch File Actual Results: It ran the executable. Expected Results: Give the usual executable warning.
Depends on: 246280
ignore 2a, we'll cover that in bug 246280.
Note to self: nsLocalFileWin.cpp::IsExecutable()
FYI GetFullPathName removes all trailing periods from the file name and also one period from each intervening directory name.
patch in bug 246280 fixes this one as well
should be fixed with bug 246280; please verify
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.