From b3332d029615c83a9901ee0e38202fa7b4317281 Mon Sep 17 00:00:00 2001 From: Frank Gambino Date: Mon, 7 Dec 2020 19:16:41 -0500 Subject: [PATCH] FIX: Correct casing of whitelisted SVG elements (#11094) * FIX: Casing of whitelisted SVG element "clipPath" * FIX: Casing of whitelisted SVG element `textPath` --- 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 1b37f47e79c..5bd0eace14b 100644 --- a/lib/upload_creator.rb +++ b/lib/upload_creator.rb @@ -7,9 +7,9 @@ class UploadCreator TYPES_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 linearGradient marker path polygon polyline radialGradient rect stop style svg text - textpath tref tspan use + textPath tref tspan use }.each(&:freeze) include ActiveSupport::Deprecation::DeprecatedConstantAccessor