From 01afcf30cc2ed9dedead1628cb3dbb332253527d Mon Sep 17 00:00:00 2001 From: Anthony Dillon Date: Fri, 18 Sep 2020 19:13:07 +0100 Subject: [PATCH] FIX: Whitelist marker elements when uploading SVGs (#10703) --- lib/upload_creator.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/upload_creator.rb b/lib/upload_creator.rb index a5352c995c..722bcfab6f 100644 --- a/lib/upload_creator.rb +++ b/lib/upload_creator.rb @@ -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