diff options
Diffstat (limited to 'lib/api/markdown.rb')
-rw-r--r-- | lib/api/markdown.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/api/markdown.rb b/lib/api/markdown.rb index 5ef60ab0b94..08b172cd608 100644 --- a/lib/api/markdown.rb +++ b/lib/api/markdown.rb @@ -40,10 +40,7 @@ module API context[:skip_project_check] = true end - # Disable comments in markdown for IE browsers because comments in IE - # could allow script execution. - browser = Browser.new(headers['User-Agent']) - context[:allow_comments] = !browser.ie? + context[:allow_comments] = false present({ html: Banzai.render_and_post_process(params[:text], context) }, with: Entities::Markdown) end |