mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 08:49:06 +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{
|
||||
circle clippath defs ellipse feGaussianBlur filter g line linearGradient
|
||||
path polygon polyline radialGradient rect stop style svg text textpath
|
||||
tref tspan use
|
||||
marker path polygon polyline radialGradient rect stop style svg text
|
||||
textpath tref tspan use
|
||||
}.each(&:freeze)
|
||||
|
||||
# Available options
|
||||
|
|
Loading…
Reference in New Issue
Block a user