2
0
Fork 0
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:
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