From f722d700c2cf447d3d1a84915f3b27b0ec9acce8 Mon Sep 17 00:00:00 2001 From: Darks Date: Tue, 23 Feb 2021 23:25:20 +0100 Subject: [PATCH] markdown: add some tags to bleach allowlist --- app/utils/bleach_allowlist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/utils/bleach_allowlist.py b/app/utils/bleach_allowlist.py index 7456a55..7468380 100644 --- a/app/utils/bleach_allowlist.py +++ b/app/utils/bleach_allowlist.py @@ -8,7 +8,7 @@ markdown_tags = [ "img", "a", "sub", "sup", - "table", "tbody", "tr", "th", "td", + "table", "thead", "tbody", "tr", "th", "td", "form", "fieldset", "input", "textarea", "label", "progress" ] @@ -17,7 +17,7 @@ markdown_attrs = { "*": ["id", "class"], "img": ["src", "alt", "title"], "a": ["href", "alt", "title"], - "form": ["action", "method"], + "form": ["action", "method", "enctype"], "input": ["id", "name", "type", "value"], "label": ["for"], "progress": ["value", "min", "max"],