diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2017-08-21 12:45:46 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-08-21 12:45:46 +0300 |
commit | 2bfee0706a61b7b1d4d5ea82f6c53ffe07e56065 (patch) | |
tree | 7eab3691a436268d34969ee368eb81c5a3fb22c2 /app/helpers/events_helper.rb | |
parent | 6509833cfa211804048ec4711572e3b44a5be21c (diff) |
Resolve "User profile activity feed contains broken image links"
Diffstat (limited to 'app/helpers/events_helper.rb')
-rw-r--r-- | app/helpers/events_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/events_helper.rb b/app/helpers/events_helper.rb index 722a65eeb98..c6f98e7e782 100644 --- a/app/helpers/events_helper.rb +++ b/app/helpers/events_helper.rb @@ -176,7 +176,7 @@ module EventsHelper sanitize( text, tags: %w(a img gl-emoji b pre code p span), - attributes: Rails::Html::WhiteListSanitizer.allowed_attributes + ['style', 'data-name', 'data-unicode-version'] + attributes: Rails::Html::WhiteListSanitizer.allowed_attributes + ['style', 'data-src', 'data-name', 'data-unicode-version'] ) end |