Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Update validators.py

shamoona9c73e2846d8
diff --git a/src/paperless/validators.py b/src/paperless/validators.py
index beb87d7b3..36e153881 100644
--- a/src/paperless/validators.py
+++ b/src/paperless/validators.py
@@ -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",
}