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
Родитель cc813dcc33
Коммит 3045840eda
2 изменённых файлов: 14 добавлений и 0 удалений

Просмотреть файл

@ -622,6 +622,13 @@ nsresult nsParser::Parse(nsIURL* aURL,nsIStreamObserver* aListener,PRBool aVerif
if (rv != NS_OK) return rv; if (rv != NS_OK) return rv;
nsAutoString theName(spec); 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); CParserContext* pc=new CParserContext(new nsScanner(theName,PR_FALSE, mCharset, mCharsetSource),aKey,aListener);
if(pc) { if(pc) {
pc->mMultipart=PR_TRUE; pc->mMultipart=PR_TRUE;

Просмотреть файл

@ -622,6 +622,13 @@ nsresult nsParser::Parse(nsIURL* aURL,nsIStreamObserver* aListener,PRBool aVerif
if (rv != NS_OK) return rv; if (rv != NS_OK) return rv;
nsAutoString theName(spec); 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); CParserContext* pc=new CParserContext(new nsScanner(theName,PR_FALSE, mCharset, mCharsetSource),aKey,aListener);
if(pc) { if(pc) {
pc->mMultipart=PR_TRUE; pc->mMultipart=PR_TRUE;