fixed recently introduced sanitize bug
This commit is contained in:
1 parent
c1ecf823d8
commit
ad2003c618
1 file changed
+1
-1
+1
-1
@@ -67,7 +67,7 @@ class XssCleaner(HTMLParser):
|
|||||||
#to strip or escape disallowed tags?
|
#to strip or escape disallowed tags?
|
||||||
self.strip_disallowed = strip_disallowed
|
self.strip_disallowed = strip_disallowed
|
||||||
# there might be data after final closing tag, that is to be ignored
|
# 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):
|
def handle_data(self, data):
|
||||||
if data and not self.in_disallowed[-1]:
|
if data and not self.in_disallowed[-1]:
|
||||||
|
|||||||
Reference in new issue
Block a user