debian-mirror-gitlab/debian/patches/895871-markdown.patch
2018-04-17 12:21:56 +10:00

20 lines
689 B
Diff

Last-Update: 2018-04-17
Forwarded: https://gitlab.com/gitlab-org/gitlab-ce/issues/45436
Bug-Upstream: https://gitlab.com/gitlab-org/gitlab-ce/issues/45436
Bug-Debian: https://bugs.debian.org/895871
Author: Dmitry Smirnov <onlyjob@debian.org>
Description: fix markdown rendering.
--- a/lib/banzai/renderer/redcarpet/html.rb
+++ b/lib/banzai/renderer/redcarpet/html.rb
@@ -5,9 +5,9 @@
def block_code(code, lang)
lang_attr = lang ? %Q{ lang="#{lang}"} : ''
"\n<pre>" \
- "<code#{lang_attr}>#{html_escape(code)}</code>" \
+ "<code#{lang_attr}>#{ERB::Util.html_escape(code)}</code>" \
"</pre>"
end
end
end