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. git-svn-id: svn://10.0.0.236/trunk@98725 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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()));
|
||||
|
||||
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user