diff --git a/VERSION b/VERSION index 31d7c592..6494d1cd 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.4.1-alpha.2+timestamp.2013.02.21.09.44.37 +Version 2.4.1-alpha.2+timestamp.2013.02.21.09.57.59 diff --git a/gluon/sanitizer.py b/gluon/sanitizer.py index 7a503e8c..b291ee5b 100644 --- a/gluon/sanitizer.py +++ b/gluon/sanitizer.py @@ -211,7 +211,7 @@ def sanitize(text, permitted_tags=[ 'pre', 'img/', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', - 'table', 'tr', 'td', 'div', + 'table', 'tbody', 'thead', 'tfoot', 'tr', 'td', 'div', 'strong', 'span', ], allowed_attributes={ @@ -225,3 +225,4 @@ def sanitize(text, permitted_tags=[ return str(text) return XssCleaner(permitted_tags=permitted_tags, allowed_attributes=allowed_attributes).strip(text, escape) +