Restrict the fix for bug 116938 to Windows-only to preserve OS/2 and

Linux users' sanity.  Bug 144923, r=law, sr=mscott
This commit is contained in:
bzbarsky%mit.edu 2002-05-17 01:34:29 +00:00
parent 7b1433c386
commit ac620507bd

View File

@ -899,7 +899,7 @@ void nsExternalAppHandler::ExtractSuggestedFileNameFromChannel(nsIChannel* aChan
// The filename must be ASCII, see RFC 2183, section 2.3
CopyASCIItoUCS2(Substring(start, iter), mSuggestedFileName);
#ifndef XP_MAC
#ifdef XP_WIN
// Make sure extension is still correct.
EnsureSuggestedFileName();
#endif
@ -1039,7 +1039,7 @@ nsresult nsExternalAppHandler::SetUpTempFile(nsIChannel * aChannel)
NS_UnescapeURL(leafName);
mSuggestedFileName = NS_ConvertUTF8toUCS2(leafName); // XXX leafName may not be UTF-8
#ifndef XP_MAC
#ifdef XP_WIN
// Make sure extension is still correct.
EnsureSuggestedFileName();
#endif