diff options
author | Mark Chao <mchao@gitlab.com> | 2018-06-15 13:40:14 +0800 |
---|---|---|
committer | Mark Chao <mchao@gitlab.com> | 2018-06-16 11:23:35 +0800 |
commit | 00c68e1b03ed92eef6aa6ab3fb84b827b14b9daa (patch) | |
tree | 2a777aee17f24709f07ea853b46d03918b542cb6 /lib | |
parent | fb08183e63733dd7845a16d9f827a5cd5f2d9080 (diff) | |
download | gitlab-ce-00c68e1b03ed92eef6aa6ab3fb84b827b14b9daa.tar.gz |
Fix xss for Markdown elements where [[_TOC_]] is enabled
Diffstat (limited to 'lib')
-rw-r--r-- | lib/banzai/filter/table_of_contents_filter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/banzai/filter/table_of_contents_filter.rb b/lib/banzai/filter/table_of_contents_filter.rb index 97244159985..b32660a8341 100644 --- a/lib/banzai/filter/table_of_contents_filter.rb +++ b/lib/banzai/filter/table_of_contents_filter.rb @@ -92,7 +92,7 @@ module Banzai def text return '' unless node - @text ||= node.text + @text ||= EscapeUtils.escape_html(node.text) end private |