diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index e990a9789..a91ab44f8 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -96,7 +96,7 @@ allowed_attributes = { allowed_protocols = ['http', 'https'] -allowed_styles = ['color', 'background-color', 'font-weight', 'transform', '-webkit-transform'] +allowed_styles = ['color', 'background-color', 'font-weight', 'text-align'] def sanitize(sanitized, noimages=False, alert=False, comment=False, edit=False): diff --git a/files/templates/formatting.html b/files/templates/formatting.html index a92915922..7cd400bb2 100644 --- a/files/templates/formatting.html +++ b/files/templates/formatting.html @@ -524,10 +524,7 @@ line breaks font-weight - transform - - - -webkit-transform + text-align