Forgot to include this comment in my previous checkin.

88746 - Make sure to not update *end*. Also, skip quotes when the charset has no value. r=heikki sr=vidur.
This commit is contained in:
harishd%netscape.com 2001-07-05 22:26:10 +00:00
parent 3cb65fbad2
commit 21bbde052f
2 changed files with 2 additions and 2 deletions

View File

@ -2516,7 +2516,7 @@ nsParser::DetectMetaTag(const char* aBytes,
(contentTokenizer.GetLength() >= kCharsetStrLen) &&
(nsCRT::strncasecmp(contentStart+offset,
kCharsetStr, kCharsetStrLen) == 0)) {
// The next word is the charset
// The next word is the charset. PR_TRUE => That we should skip quotes - Bug 88746
if ((offset = contentTokenizer.GetNextWord(PR_TRUE)) != kNotFound) {
aCharset.Assign(NS_ConvertASCIItoUCS2(contentStart+offset,
contentTokenizer.GetLength()));

View File

@ -2516,7 +2516,7 @@ nsParser::DetectMetaTag(const char* aBytes,
(contentTokenizer.GetLength() >= kCharsetStrLen) &&
(nsCRT::strncasecmp(contentStart+offset,
kCharsetStr, kCharsetStrLen) == 0)) {
// The next word is the charset
// The next word is the charset. PR_TRUE => That we should skip quotes - Bug 88746
if ((offset = contentTokenizer.GetNextWord(PR_TRUE)) != kNotFound) {
aCharset.Assign(NS_ConvertASCIItoUCS2(contentStart+offset,
contentTokenizer.GetLength()));