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:
bienvenu%nventure.com
2007-08-10 15:24:29 +00:00
parent 11873fccfc
commit cbd7343de7

View File

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