diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-04-28 01:56:37 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-04-30 23:35:25 +0300 |
commit | e46d1cdd8bd4cc12e8c8e8fdce10b3114a17d95e (patch) | |
tree | fc6b79dd86cd193ce86093c8df8ab91da338057d /app | |
parent | aa2cc670fe2c9de772c82d90df4ee2d8a77c23fc (diff) |
Add Gitlab::Markdown::SanitizationFilter
This just extends the HTML::Pipeline::SanitizationFilter with our custom
whitelist.
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/gitlab_markdown_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/gitlab_markdown_helper.rb b/app/helpers/gitlab_markdown_helper.rb index 7dbffaae5f9..24263a0f619 100644 --- a/app/helpers/gitlab_markdown_helper.rb +++ b/app/helpers/gitlab_markdown_helper.rb @@ -34,7 +34,7 @@ module GitlabMarkdownHelper # see https://github.com/vmg/redcarpet#darling-i-packed-you-a-couple-renderers-for-lunch rend = Redcarpet::Render::GitlabHTML.new(self, user_color_scheme_class, { - # Handled further down the line by HTML::Pipeline::SanitizationFilter + # Handled further down the line by Gitlab::Markdown::SanitizationFilter escape_html: false }.merge(options)) |