зеркало из https://github.com/mozilla/gecko-dev.git
Bug 739156 - Replace illegal characters in filename for Win Vista+ file picker. r=jimm
This commit is contained in:
Родитель
c997d9e1b1
Коммит
6f0da60663
|
@ -1157,6 +1157,7 @@ nsBaseWinFilePicker::SetDefaultString(const nsAString& aString)
|
|||
// Then, we need to replace illegal characters. At this stage, we cannot
|
||||
// replace the backslash as the string might represent a file path.
|
||||
mDefaultFilePath.ReplaceChar(FILE_ILLEGAL_CHARACTERS, '-');
|
||||
mDefaultFilename.ReplaceChar(FILE_ILLEGAL_CHARACTERS, '-');
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче