mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 20:36:39 +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)
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user