summaryrefslogtreecommitdiffstats
path: root/python/Kallithea/bleach.patch
diff options
context:
space:
mode:
Diffstat (limited to 'python/Kallithea/bleach.patch')
-rw-r--r--python/Kallithea/bleach.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/python/Kallithea/bleach.patch b/python/Kallithea/bleach.patch
new file mode 100644
index 0000000000..4c84c8524b
--- /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'],
+ )
+