Bug 24705. OpenComposeWindowWithURI must not escape parameters before calling OpenComposeWindowWithValues since fix for bug 24301. R=ssptizer,jefft A=brendan@mozilla.org,jar,chofmann

git-svn-id: svn://10.0.0.236/trunk@58372 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ducarroz%netscape.com
2000-01-22 01:02:01 +00:00
parent 3656e27e92
commit acd1f70314

View File

@@ -181,14 +181,13 @@ NS_IMETHODIMP nsMsgComposeService::OpenComposeWindowWithURI(const PRUnichar * aM
format = nsIMsgCompFormat::PlainText;
//ugghh more conversion work!!!!
// and all our arguments must be escaped!
nsAutoString uniToPart = nsEscape(aToPart, url_Path);
nsAutoString uniCcPart = nsEscape(aCcPart, url_Path);
nsAutoString unicBccPart = nsEscape(aBccPart, url_Path);
nsAutoString uniNewsgroup = nsEscape(aNewsgroup, url_Path);
nsAutoString uniSubjectPart = nsEscape(aSubjectPart, url_Path);
nsAutoString uniBodyPart = nsEscape(aBodyPart, url_Path);
nsAutoString uniAttachmentPart = nsEscape(aAttachmentPart, url_Path);
nsAutoString uniToPart = aToPart;
nsAutoString uniCcPart = aCcPart;
nsAutoString unicBccPart = aBccPart;
nsAutoString uniNewsgroup = aNewsgroup;
nsAutoString uniSubjectPart = aSubjectPart;
nsAutoString uniBodyPart = aBodyPart;
nsAutoString uniAttachmentPart = aAttachmentPart;
rv = OpenComposeWindowWithValues(aMsgComposeWindowURL, format, uniToPart.GetUnicode(),
uniCcPart.GetUnicode(),