mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Correct casing of whitelisted SVG elements (#11094)
* FIX: Casing of whitelisted SVG element "clipPath" * FIX: Casing of whitelisted SVG element `textPath`
This commit is contained in:
parent
6b464d1b8d
commit
b3332d0296
@ -7,9 +7,9 @@ class UploadCreator
|
|||||||
TYPES_TO_CROP ||= %w{avatar card_background custom_emoji profile_background}.each(&:freeze)
|
TYPES_TO_CROP ||= %w{avatar card_background custom_emoji profile_background}.each(&:freeze)
|
||||||
|
|
||||||
ALLOWED_SVG_ELEMENTS ||= %w{
|
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
|
marker path polygon polyline radialGradient rect stop style svg text
|
||||||
textpath tref tspan use
|
textPath tref tspan use
|
||||||
}.each(&:freeze)
|
}.each(&:freeze)
|
||||||
|
|
||||||
include ActiveSupport::Deprecation::DeprecatedConstantAccessor
|
include ActiveSupport::Deprecation::DeprecatedConstantAccessor
|
||||||
|
Loading…
Reference in New Issue
Block a user