mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
fix bug 50864. remove umr r=nhotta
This commit is contained in:
parent
288d5211f1
commit
5e13bf880f
@ -245,13 +245,18 @@ NS_IMETHODIMP nsMetaCharsetObserver::Notify(
|
||||
}
|
||||
static nsAutoString contenttype = NS_ConvertToString("Content-Type");
|
||||
static nsAutoString texthtml = NS_ConvertToString("text/html");
|
||||
|
||||
PRInt32 lastIdx =0;
|
||||
if(nsnull != httpEquivValue)
|
||||
lastIdx = nsCRT::strlen(httpEquivValue)-1;
|
||||
|
||||
if((nsnull != httpEquivValue) &&
|
||||
(nsnull != contentValue) &&
|
||||
((0==nsCRT::strcasecmp(httpEquivValue,contenttype.GetUnicode())) ||
|
||||
((((httpEquivValue[0]=='\'') &&
|
||||
(httpEquivValue[contenttype.Length()+1]=='\'')) ||
|
||||
(httpEquivValue[lastIdx]=='\'')) ||
|
||||
((httpEquivValue[0]=='\"') &&
|
||||
(httpEquivValue[contenttype.Length()+1]=='\"'))) &&
|
||||
(httpEquivValue[lastIdx]=='\"'))) &&
|
||||
(0==nsCRT::strncasecmp(httpEquivValue+1,
|
||||
contenttype.GetUnicode(),
|
||||
contenttype.Length()))
|
||||
|
Loading…
Reference in New Issue
Block a user