Bug #257986 --> Problem deleting local folders with forward slashes in the folder name

sr=bienvenu
This commit is contained in:
scott%scott-macgregor.org 2004-10-15 06:52:39 +00:00
Родитель f1c684771b
Коммит 08e2f0cedd
1 изменённых файлов: 6 добавлений и 2 удалений

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

@ -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());