mirror of
https://github.com/discourse/discourse.git
synced 2025-04-08 11:00:46 +08:00
FIX: Whitelist marker elements when uploading SVGs (#10703)
This commit is contained in:
parent
9c1e21b874
commit
01afcf30cc
@ -8,8 +8,8 @@ class UploadCreator
|
|||||||
|
|
||||||
WHITELISTED_SVG_ELEMENTS ||= %w{
|
WHITELISTED_SVG_ELEMENTS ||= %w{
|
||||||
circle clippath defs ellipse feGaussianBlur filter g line linearGradient
|
circle clippath defs ellipse feGaussianBlur filter g line linearGradient
|
||||||
path polygon polyline radialGradient rect stop style svg text textpath
|
marker path polygon polyline radialGradient rect stop style svg text
|
||||||
tref tspan use
|
textpath tref tspan use
|
||||||
}.each(&:freeze)
|
}.each(&:freeze)
|
||||||
|
|
||||||
# Available options
|
# Available options
|
||||||
|
Loading…
x
Reference in New Issue
Block a user