mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 01:47:22 +08:00
FIX: whitelist 'feGaussianBlur' and 'filter' svg elements
This commit is contained in:
parent
e986e96227
commit
2b721dff57
|
@ -6,8 +6,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)
|
||||||
|
|
||||||
WHITELISTED_SVG_ELEMENTS ||= %w{
|
WHITELISTED_SVG_ELEMENTS ||= %w{
|
||||||
circle clippath defs ellipse g line linearGradient path polygon polyline
|
circle clippath defs ellipse feGaussianBlur filter g line linearGradient
|
||||||
radialGradient rect stop style svg text textpath tref tspan use
|
path polygon polyline radialGradient rect stop style svg text textpath
|
||||||
|
tref tspan use
|
||||||
}.each(&:freeze)
|
}.each(&:freeze)
|
||||||
|
|
||||||
# Available options
|
# Available options
|
||||||
|
|
Loading…
Reference in New Issue
Block a user