diff options
author | Brett Walker <bwalker@gitlab.com> | 2019-02-20 17:51:55 -0600 |
---|---|---|
committer | Brett Walker <bwalker@gitlab.com> | 2019-08-15 12:43:40 -0500 |
commit | f790b84192af65c8426653afbf405a026b54b8a4 (patch) | |
tree | 7248a94c77bf5480297b839c50258ead066239cb /lib/banzai/pipeline/markup_pipeline.rb | |
parent | a5ac84a1d05212de6d1831e2d4e8f552139f2a3c (diff) | |
download | gitlab-ce-f790b84192af65c8426653afbf405a026b54b8a4.tar.gz |
Add support for using a Camo proxy server
User images and videos will get proxied through
the Camo server in order to keep malicious
sites from collecting the IP address of users.
Diffstat (limited to 'lib/banzai/pipeline/markup_pipeline.rb')
-rw-r--r-- | lib/banzai/pipeline/markup_pipeline.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/banzai/pipeline/markup_pipeline.rb b/lib/banzai/pipeline/markup_pipeline.rb index ceba082cd4f..c86d5f08ded 100644 --- a/lib/banzai/pipeline/markup_pipeline.rb +++ b/lib/banzai/pipeline/markup_pipeline.rb @@ -6,11 +6,16 @@ module Banzai def self.filters @filters ||= FilterArray[ Filter::SanitizationFilter, + Filter::AssetProxyFilter, Filter::ExternalLinkFilter, Filter::PlantumlFilter, Filter::SyntaxHighlightFilter ] end + + def self.transform_context(context) + Filter::AssetProxyFilter.transform_context(context) + end end end end |