From 038394a525a7b6688ae6dc0ac1273c55c58f9b31 Mon Sep 17 00:00:00 2001 From: Arn0 Date: Thu, 14 Mar 2024 14:32:02 +0100 Subject: python/Kallithea: Patches for SQLAlchemy 2, and Bleach bug Signed-off-by: Willy Sudiarto Raharjo --- python/Kallithea/bleach.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 python/Kallithea/bleach.patch (limited to 'python/Kallithea/bleach.patch') diff --git a/python/Kallithea/bleach.patch b/python/Kallithea/bleach.patch new file mode 100644 index 000000000000..4c84c8524b7b --- /dev/null +++ b/python/Kallithea/bleach.patch @@ -0,0 +1,12 @@ +diff -r 7324ff1929d5 kallithea/lib/markup_renderer.py +--- a/kallithea/lib/markup_renderer.py Thu May 27 21:28:32 2021 +0200 ++++ b/kallithea/lib/markup_renderer.py Thu Mar 14 12:25:06 2024 +0100 +@@ -142,7 +142,7 @@ + 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'th', + 'thead', 'tr', 'ul'], + attributes=['class', 'id', 'style', 'label', 'title', 'alt', 'href', 'src'], +- styles=['color'], ++ css_sanitizer=['color'], + protocols=['http', 'https', 'mailto'], + ) + -- cgit v1.2.3