FIX: Whitelist marker elements when uploading SVGs (#10703)

This commit is contained in:
Anthony Dillon 2020-09-18 19:13:07 +01:00 committed by GitHub
parent 9c1e21b874
commit 01afcf30cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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