Fix condition in UIxMailPartHTMLViewer

This commit is contained in:
Francis Lachapelle 2013-06-03 12:07:18 -04:00
parent 49e964c529
commit 854bce28fb

View file

@ -158,16 +158,16 @@ static NSData* _sanitizeContent(NSData *theData)
{ {
// We check if we see </head> in which case, we don't do any kind // We check if we see </head> in which case, we don't do any kind
// of substitution there after. // of substitution there after.
if (i < len-5) if (i < len-6)
{ {
if ((*bytes == '<') && if ((*bytes == '<') &&
(*(bytes+1) == '/') && (*(bytes+1) == '/') &&
(*(bytes+1) == 'h' || *(bytes+1) == 'H') && (*(bytes+2) == 'h' || *(bytes+2) == 'H') &&
(*(bytes+2) == 'e' || *(bytes+2) == 'E') && (*(bytes+3) == 'e' || *(bytes+3) == 'E') &&
(*(bytes+3) == 'a' || *(bytes+3) == 'A') && (*(bytes+4) == 'a' || *(bytes+4) == 'A') &&
(*(bytes+4) == 'd' || *(bytes+4) == 'D') && (*(bytes+5) == 'd' || *(bytes+5) == 'D') &&
(*(bytes+7) == '>')) (*(bytes+6) == '>'))
break; break;
} }
// We search for something like : // We search for something like :