Skip to content

Commit aecbd31

Browse files
committed
Fix glm by adding id and classes to sanitize white attrs
1 parent beb5e1b commit aecbd31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/helpers/gitlab_markdown_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def gfm(text, html_options = {})
3131
extractions[$1]
3232
end
3333

34-
sanitize text.html_safe
34+
sanitize text.html_safe, attributes: ActionView::Base.sanitized_allowed_attributes + %w(id class )
3535
end
3636

3737
# Use this in places where you would normally use link_to(gfm(...), ...).

0 commit comments

Comments
 (0)