зеркало из https://github.com/mozilla/pjs.git
Bug #257986 --> Problem deleting local folders with forward slashes in the folder name
sr=bienvenu
This commit is contained in:
Родитель
f1c684771b
Коммит
08e2f0cedd
|
@ -1988,7 +1988,11 @@ nsMsgLocalMailFolder::CopyFolderLocal(nsIMsgFolder *srcFolder, PRBool isMoveFold
|
|||
|
||||
nsXPIDLString folderName;
|
||||
srcFolder->GetName(getter_Copies(folderName));
|
||||
|
||||
nsCAutoString tempSafeFolderName;
|
||||
tempSafeFolderName.AssignWithConversion(folderName.get());
|
||||
NS_MsgHashIfNecessary(tempSafeFolderName);
|
||||
nsAutoString safeFolderName;
|
||||
safeFolderName.AssignWithConversion(tempSafeFolderName);
|
||||
srcFolder->ForceDBClosed();
|
||||
|
||||
nsCOMPtr<nsIFileSpec> oldPathSpec;
|
||||
|
@ -2027,7 +2031,7 @@ nsMsgLocalMailFolder::CopyFolderLocal(nsIMsgFolder *srcFolder, PRBool isMoveFold
|
|||
rv = summarySpec.CopyToDir(newPath);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
rv = AddSubfolder(folderName, getter_AddRefs(newMsgFolder));
|
||||
rv = AddSubfolder(safeFolderName, getter_AddRefs(newMsgFolder));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
newMsgFolder->SetPrettyName(folderName.get());
|
||||
|
|
Загрузка…
Ссылка в новой задаче