From 9386c7aacbab286e27d930a25d5d42dcc8b82cd3 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 9 Feb 2022 00:30:57 +0200 Subject: [PATCH] cvx --- files/helpers/sanitize.py | 2 +- files/templates/formatting.html | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) 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