Support html-sanitizer >= 2.7.1
This commit is contained in:
parent
c794d645dd
commit
d09c58e541
2 changed files with 14 additions and 0 deletions
13
debian/patches/html-sanitizer-2.8.patch
vendored
Normal file
13
debian/patches/html-sanitizer-2.8.patch
vendored
Normal 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)
|
||||||
|
|
1
debian/patches/series
vendored
1
debian/patches/series
vendored
|
@ -1,4 +1,5 @@
|
||||||
895871-markdown.patch
|
895871-markdown.patch
|
||||||
|
html-sanitizer-2.8.patch
|
||||||
0050-relax-stable-libs.patch
|
0050-relax-stable-libs.patch
|
||||||
0100-remove-development-test.patch
|
0100-remove-development-test.patch
|
||||||
0108-make-mysql-optional.patch
|
0108-make-mysql-optional.patch
|
||||||
|
|
Loading…
Reference in a new issue