]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Update validators.py
authorshamoon <4887959+shamoon@users.noreply.github.com>
Fri, 12 Dec 2025 17:27:19 +0000 (09:27 -0800)
committershamoon <4887959+shamoon@users.noreply.github.com>
Fri, 12 Dec 2025 17:27:19 +0000 (09:27 -0800)
src/paperless/validators.py

index beb87d7b3400b27e4e90d8d9f937e2829483d371..36e1538817b8626c4d00dc5589ce8328752d6e5a 100644 (file)
@@ -21,6 +21,7 @@ ALLOWED_SVG_TAGS: set[str] = {
     "use",
     "title",
     "desc",
+    "style",
 }
 
 ALLOWED_SVG_ATTRIBUTES: set[str] = {
@@ -29,6 +30,7 @@ ALLOWED_SVG_ATTRIBUTES: set[str] = {
     "style",
     "d",
     "fill",
+    "fill-opacity",
     "fill-rule",
     "stroke",
     "stroke-width",
@@ -69,6 +71,7 @@ ALLOWED_SVG_ATTRIBUTES: set[str] = {
     "xmlns",
     "xmlns:xlink",
     "version",
+    "type",
 }