Commit 77a6746a authored by Robert Speicher's avatar Robert Speicher

Run SanitizationFilter before our reference filters

parent 02809e1c
...@@ -92,9 +92,14 @@ module Gitlab ...@@ -92,9 +92,14 @@ module Gitlab
# Custom filters for html-pipeline: # Custom filters for html-pipeline:
# #
# SanitizationFilter should come first so that all generated reference HTML
# goes through untouched.
#
# See https://gitlab.com/gitlab-org/html-pipeline-gitlab for more filters # See https://gitlab.com/gitlab-org/html-pipeline-gitlab for more filters
def filters def filters
[ [
HTML::Pipeline::SanitizationFilter,
Gitlab::Markdown::UserReferenceFilter, Gitlab::Markdown::UserReferenceFilter,
Gitlab::Markdown::IssueReferenceFilter, Gitlab::Markdown::IssueReferenceFilter,
Gitlab::Markdown::ExternalIssueReferenceFilter, Gitlab::Markdown::ExternalIssueReferenceFilter,
...@@ -103,8 +108,8 @@ module Gitlab ...@@ -103,8 +108,8 @@ module Gitlab
Gitlab::Markdown::CommitRangeReferenceFilter, Gitlab::Markdown::CommitRangeReferenceFilter,
Gitlab::Markdown::CommitReferenceFilter, Gitlab::Markdown::CommitReferenceFilter,
Gitlab::Markdown::LabelReferenceFilter, Gitlab::Markdown::LabelReferenceFilter,
HTML::Pipeline::Gitlab::GitlabEmojiFilter,
HTML::Pipeline::SanitizationFilter HTML::Pipeline::Gitlab::GitlabEmojiFilter
] ]
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment