mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 01:11:17 -06:00
Fix: normalize SVG tag and attribute names, add version (#11586)
This commit is contained in:
@@ -14,10 +14,10 @@ ALLOWED_SVG_TAGS: set[str] = {
|
|||||||
"text",
|
"text",
|
||||||
"tspan",
|
"tspan",
|
||||||
"defs",
|
"defs",
|
||||||
"linearGradient",
|
"lineargradient",
|
||||||
"radialGradient",
|
"radialgradient",
|
||||||
"stop",
|
"stop",
|
||||||
"clipPath",
|
"clippath",
|
||||||
"use",
|
"use",
|
||||||
"title",
|
"title",
|
||||||
"desc",
|
"desc",
|
||||||
@@ -52,14 +52,14 @@ ALLOWED_SVG_ATTRIBUTES: set[str] = {
|
|||||||
"y1",
|
"y1",
|
||||||
"x2",
|
"x2",
|
||||||
"y2",
|
"y2",
|
||||||
"gradientTransform",
|
"gradienttransform",
|
||||||
"gradientUnits",
|
"gradientunits",
|
||||||
"offset",
|
"offset",
|
||||||
"stop-color",
|
"stop-color",
|
||||||
"stop-opacity",
|
"stop-opacity",
|
||||||
"clip-path",
|
"clip-path",
|
||||||
"viewBox",
|
"viewbox",
|
||||||
"preserveAspectRatio",
|
"preserveaspectratio",
|
||||||
"href",
|
"href",
|
||||||
"xlink:href",
|
"xlink:href",
|
||||||
"font-family",
|
"font-family",
|
||||||
@@ -68,6 +68,7 @@ ALLOWED_SVG_ATTRIBUTES: set[str] = {
|
|||||||
"text-anchor",
|
"text-anchor",
|
||||||
"xmlns",
|
"xmlns",
|
||||||
"xmlns:xlink",
|
"xmlns:xlink",
|
||||||
|
"version",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user