зеркало из https://github.com/mozilla/pjs.git
Bug 384856, Replace illegal characters for downloads more consistently, Patch by Edward Lee (Mardak), r+sr=biesi
This commit is contained in:
Родитель
ab5b149d6b
Коммит
0b8a9d710c
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче