Bug 384856, Replace illegal characters for downloads more consistently, Patch by Edward Lee (Mardak), r+sr=biesi

This commit is contained in:
flamingice%sourmilk.net 2007-06-27 22:46:54 +00:00
Родитель ab5b149d6b
Коммит 0b8a9d710c
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1469,8 +1469,8 @@ nsExternalAppHandler::nsExternalAppHandler(nsIMIMEInfo * aMIMEInfo,
AppendUTF8toUTF16(aTempFileExtension, mTempFileExtension);
// replace platform specific path separator and illegal characters to avoid any confusion
mSuggestedFileName.ReplaceChar(FILE_PATH_SEPARATOR FILE_ILLEGAL_CHARACTERS, '-');
mTempFileExtension.ReplaceChar(FILE_PATH_SEPARATOR FILE_ILLEGAL_CHARACTERS, '-');
mSuggestedFileName.ReplaceChar(FILE_PATH_SEPARATOR FILE_ILLEGAL_CHARACTERS, '_');
mTempFileExtension.ReplaceChar(FILE_PATH_SEPARATOR FILE_ILLEGAL_CHARACTERS, '_');
// Make sure extension is correct.
EnsureSuggestedFileName();