Skip to content
Snippets Groups Projects
Commit a9d1c0d7 authored by Ahmad Sherif's avatar Ahmad Sherif
Browse files

Revert "Fix a memory leak caused by Banzai::Filter::SanitizationFilter"

This reverts commit 0508f1db [formerly 504a3b5e].


Former-commit-id: 0fe33f92
parent 5b486490
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -7,7 +7,7 @@ module Banzai
UNSAFE_PROTOCOLS = %w(data javascript vbscript).freeze
 
def whitelist
whitelist = super.dup
whitelist = super
 
customize_whitelist(whitelist)
 
Loading
Loading
@@ -42,8 +42,6 @@ module Banzai
# Allow any protocol in `a` elements...
whitelist[:protocols].delete('a')
 
whitelist[:transformers] = whitelist[:transformers].dup
# ...but then remove links with unsafe protocols
whitelist[:transformers].push(remove_unsafe_links)
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment