Fix for bug #2468.

This commit is contained in:
Ludovic Marcotte 2013-10-23 16:04:37 -04:00
parent bd2759ecdf
commit 87261f3280

View file

@ -562,6 +562,11 @@ static NSData* _sanitizeContent(NSData *theData)
&& ![value hasPrefix: @"mailto:"] && ![value hasPrefix: @"mailto:"]
&& ![value hasPrefix: @"#"]); && ![value hasPrefix: @"#"]);
} }
else if ([name isEqualToString: @"onload"]
|| [name isEqualToString: @"onclick"])
{
skipAttribute = YES;
}
else else
value = [_attributes valueAtIndex: count]; value = [_attributes valueAtIndex: count];
if (!skipAttribute) if (!skipAttribute)