fixed issue 1117, snitize of unicode, thanks Bill
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.2.1 (2012-10-31 09:52:38) stable
|
Version 2.2.1 (2012-10-31 10:02:04) stable
|
||||||
|
|||||||
+1
-1
@@ -220,7 +220,7 @@ def sanitize(text, permitted_tags=[
|
|||||||
'td': ['colspan'],
|
'td': ['colspan'],
|
||||||
},
|
},
|
||||||
escape=True):
|
escape=True):
|
||||||
if not isinstance(text, str):
|
if not isinstance(text, basestring):
|
||||||
return str(text)
|
return str(text)
|
||||||
return XssCleaner(permitted_tags=permitted_tags,
|
return XssCleaner(permitted_tags=permitted_tags,
|
||||||
allowed_attributes=allowed_attributes).strip(text, escape)
|
allowed_attributes=allowed_attributes).strip(text, escape)
|
||||||
|
|||||||
Reference in New Issue
Block a user