summaryrefslogtreecommitdiff
path: root/lib/banzai
diff options
context:
space:
mode:
authorPirate Praveen <praveen@debian.org>2018-06-30 13:56:13 +0200
committerPirate Praveen <praveen@debian.org>2018-06-30 14:05:36 +0200
commit89bffe083d35a39e67d03ebd9a8e0c7bf0ca7bde (patch)
tree34aa2d1594dcebc67e52d1f0f33d065d58a199d7 /lib/banzai
parent99e816bc80b3571bce40cca525d35724ee7ab968 (diff)
downloadgitlab-ce-89bffe083d35a39e67d03ebd9a8e0c7bf0ca7bde.tar.gz
dup whitelist before modification
Fixes ActionView::Template::Error (can't modify frozen Hash) #48415
Diffstat (limited to 'lib/banzai')
-rw-r--r--lib/banzai/filter/sanitization_filter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/banzai/filter/sanitization_filter.rb b/lib/banzai/filter/sanitization_filter.rb
index afc2ca4e362..4110163d3bd 100644
--- a/lib/banzai/filter/sanitization_filter.rb
+++ b/lib/banzai/filter/sanitization_filter.rb
@@ -8,7 +8,7 @@ module Banzai
TABLE_ALIGNMENT_PATTERN = /text-align: (?<alignment>center|left|right)/
def whitelist
- whitelist = super
+ whitelist = super.dup
customize_whitelist(whitelist)