A platform for community discussion. Free, open, simple.
FIX: whitelist 'feGaussianBlur' and 'filter' svg elements
Régis Hanol2b721dff5762
diff --git a/lib/upload_creator.rb b/lib/upload_creator.rbindex 6d54ad055ac..de207439e32 100644--- a/lib/upload_creator.rb+++ b/lib/upload_creator.rb@@ -6,8 +6,9 @@ class UploadCreatorTYPES_TO_CROP ||= %w{avatar card_background custom_emoji profile_background}.each(&:freeze)WHITELISTED_SVG_ELEMENTS ||= %w{- circle clippath defs ellipse g line linearGradient path polygon polyline- radialGradient rect stop style svg text textpath tref tspan use+ circle clippath defs ellipse feGaussianBlur filter g line linearGradient+ path polygon polyline radialGradient rect stop style svg text textpath+ tref tspan use}.each(&:freeze)# Available options