A platform for community discussion. Free, open, simple.
FIX: Correct casing of whitelisted SVG elements (#11094)
Frank Gambinob3332d029615
diff --git a/lib/upload_creator.rb b/lib/upload_creator.rbindex 1b37f47e79c..5bd0eace14b 100644--- a/lib/upload_creator.rb+++ b/lib/upload_creator.rb@@ -7,9 +7,9 @@ class UploadCreatorTYPES_TO_CROP ||= %w{avatar card_background custom_emoji profile_background}.each(&:freeze)ALLOWED_SVG_ELEMENTS ||= %w{- circle clippath defs ellipse feGaussianBlur filter g line linearGradient+ circle clipPath defs ellipse feGaussianBlur filter g line linearGradientmarker path polygon polyline radialGradient rect stop style svg text- textpath tref tspan use+ textPath tref tspan use}.each(&:freeze)include ActiveSupport::Deprecation::DeprecatedConstantAccessor