Commit aecbd313bc2792a54bbecf6333fc293cd6b059a4

Authored by randx
1 parent beb5e1bd

Fix glm by adding id and classes to sanitize white attrs

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/helpers/gitlab_markdown_helper.rb
... ... @@ -31,7 +31,7 @@ module GitlabMarkdownHelper
31 31 extractions[$1]
32 32 end
33 33  
34   - sanitize text.html_safe
  34 + sanitize text.html_safe, attributes: ActionView::Base.sanitized_allowed_attributes + %w(id class )
35 35 end
36 36  
37 37 # Use this in places where you would normally use link_to(gfm(...), ...).
... ...