fixed recently introduced sanitize bug

This commit is contained in:
mdipierro
2015-06-27 00:33:16 -05:00
parent c1ecf823d8
commit ad2003c618
+1 -1
View File
@@ -67,7 +67,7 @@ class XssCleaner(HTMLParser):
#to strip or escape disallowed tags?
self.strip_disallowed = strip_disallowed
# there might be data after final closing tag, that is to be ignored
self.in_disallowed = [True]
self.in_disallowed = [False]
def handle_data(self, data):
if data and not self.in_disallowed[-1]: