зеркало из https://github.com/mozilla/pjs.git
fix for 391556, handle namespaces that start with hierarchy delimiter, sr=mscott
This commit is contained in:
Родитель
33ce085199
Коммит
0c0399b4d5
|
@ -854,7 +854,9 @@ NS_IMETHODIMP nsImapMailFolder::CreateClientSubfolderInfo(const nsACString& fold
|
|||
NS_ConvertASCIItoUTF16 leafName(folderName);
|
||||
nsAutoString folderNameStr;
|
||||
nsAutoString parentName = leafName;
|
||||
PRInt32 folderStart = leafName.FindChar('/');
|
||||
// use RFind, because folder can start with a delimiter and
|
||||
// not be a leaf folder.
|
||||
PRInt32 folderStart = leafName.RFindChar('/');
|
||||
if (folderStart > 0)
|
||||
{
|
||||
nsCOMPtr<nsIRDFService> rdf(do_GetService(kRDFServiceCID, &rv));
|
||||
|
|
Загрузка…
Ссылка в новой задаче