mirror of
https://github.com/discourse/discourse.git
synced 2025-08-21 19:11:18 +08:00
FIX: Whitelist marker elements when uploading SVGs (#10703)
This commit is contained in:
parent
9c1e21b874
commit
01afcf30cc
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue