fix for 391556, handle namespaces that start with hierarchy delimiter, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@231801 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user