Fix for bug #2468.

pull/13/head
Ludovic Marcotte 2013-10-23 16:04:37 -04:00
parent bd2759ecdf
commit 87261f3280
1 changed files with 5 additions and 0 deletions

View File

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