diff --git a/debian/patches/html-sanitizer-2.8.patch b/debian/patches/html-sanitizer-2.8.patch new file mode 100644 index 0000000000..d2f999c0d2 --- /dev/null +++ b/debian/patches/html-sanitizer-2.8.patch @@ -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: (?center|left|right)/ + + def whitelist +- whitelist = super ++ whitelist = super.dup + + customize_whitelist(whitelist) + diff --git a/debian/patches/series b/debian/patches/series index 31d04139a6..4e35a002fd 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -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