Support html-sanitizer >= 2.7.1

This commit is contained in:
Pirate Praveen 2018-06-30 16:48:59 +05:30
parent c794d645dd
commit d09c58e541
2 changed files with 14 additions and 0 deletions

13
debian/patches/html-sanitizer-2.8.patch vendored Normal file
View file

@ -0,0 +1,13 @@
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)

View file

@ -1,4 +1,5 @@
895871-markdown.patch
html-sanitizer-2.8.patch
0050-relax-stable-libs.patch
0100-remove-development-test.patch
0108-make-mysql-optional.patch