diff options
author | Pirate Praveen <praveen@debian.org> | 2018-06-30 13:56:13 +0200 |
---|---|---|
committer | Pirate Praveen <praveen@debian.org> | 2018-06-30 14:05:36 +0200 |
commit | 89bffe083d35a39e67d03ebd9a8e0c7bf0ca7bde (patch) | |
tree | 34aa2d1594dcebc67e52d1f0f33d065d58a199d7 /lib/banzai | |
parent | 99e816bc80b3571bce40cca525d35724ee7ab968 (diff) | |
download | gitlab-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.rb | 2 |
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) |