A platform for community discussion. Free, open, simple.
FIX: Whitelist marker elements when uploading SVGs (#10703)
Anthony Dillon01afcf30cc2e
diff --git a/lib/upload_creator.rb b/lib/upload_creator.rbindex a5352c995c0..722bcfab6f8 100644--- a/lib/upload_creator.rb+++ b/lib/upload_creator.rb@@ -8,8 +8,8 @@ class UploadCreatorWHITELISTED_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