зеркало из https://github.com/mozilla/pjs.git
Bug #99101: In RenameLeaf(), unescape the folder name before searching for hierarchy delimiter (to figure out parent pathname). r=naving, sr=bienvenu.
This commit is contained in:
Родитель
4825371fbf
Коммит
523d47fdba
|
@ -2387,8 +2387,10 @@ nsImapService::RenameLeaf(nsIEventQueue* eventQueue, nsIMsgFolder* srcFolder,
|
|||
|
||||
char *utfNewName = CreateUtf7ConvertedStringFromUnicode( newLeafName);
|
||||
|
||||
nsCAutoString cStrFolderName(NS_STATIC_CAST(const char *, folderName));
|
||||
PRInt32 leafNameStart =
|
||||
nsCAutoString cStrFolderName(NS_STATIC_CAST(const char *, folderName));
|
||||
// Unescape the name before looking for parent path
|
||||
nsUnescape(NS_CONST_CAST(char*, cStrFolderName.get()));
|
||||
PRInt32 leafNameStart =
|
||||
cStrFolderName.RFindChar(hierarchySeparator);
|
||||
if (leafNameStart != -1)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче