debian-mirror-gitlab/debian/patches/html-sanitizer-2.8.patch
2018-06-30 16:51:30 +05:30

13 lines
366 B
Diff

Bug: https://gitlab.com/gitlab-org/gitlab-ce/issues/48415
--- a/lib/banzai/filter/sanitization_filter.rb
+++ b/lib/banzai/filter/sanitization_filter.rb
@@ -8,7 +8,7 @@
TABLE_ALIGNMENT_PATTERN = /text-align: (?<alignment>center|left|right)/
def whitelist
- whitelist = super
+ whitelist = super.dup
customize_whitelist(whitelist)