From 8b55ab5dea2089b179bb094d025228642d162c4c Mon Sep 17 00:00:00 2001 From: Christophe Siraut Date: Mon, 21 Oct 2024 07:45:59 +0200 Subject: [PATCH] aircox/conf.py: allow attribute href --- aircox/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aircox/conf.py b/aircox/conf.py index 5c46cc0..96d9657 100755 --- a/aircox/conf.py +++ b/aircox/conf.py @@ -182,7 +182,7 @@ class Settings(BaseSettings): # ---- bleach ALLOWED_TAGS = [*sanitizer.ALLOWED_TAGS, "br", "p", "hr", "h2", "h3", "h4", "h5", "iframe", "pre"] - ALLOWED_ATTRIBUTES = [*sanitizer.ALLOWED_ATTRIBUTES, "src", "width", "height", "frameborder"] + ALLOWED_ATTRIBUTES = [*sanitizer.ALLOWED_ATTRIBUTES, "src", "width", "height", "frameborder", "href"] ALLOWED_PROTOCOLS = sanitizer.ALLOWED_PROTOCOLS