fix bug 6740. approved by christ hofmann. reviewed by harish. This is a temp fix. ftang should move this hack out of parser after M6

This commit is contained in:
ftang@netscape.com
1999-05-25 02:35:27 +00:00
parent 4f9f1a828f
commit d2eb3b641e
2 changed files with 14 additions and 0 deletions
+7
View File
@@ -622,6 +622,13 @@ nsresult nsParser::Parse(nsIURL* aURL,nsIStreamObserver* aListener,PRBool aVerif
if (rv != NS_OK) return rv;
nsAutoString theName(spec);
// Temp hack to prevent reload on mail message
if(-1 != theName.Find("tempMessage.eml"))
{
nsAutoString utf8("UTF-8");
SetDocumentCharset(utf8, kCharsetFromPreviousLoading);
}
CParserContext* pc=new CParserContext(new nsScanner(theName,PR_FALSE, mCharset, mCharsetSource),aKey,aListener);
if(pc) {
pc->mMultipart=PR_TRUE;