From aecbd313bc2792a54bbecf6333fc293cd6b059a4 Mon Sep 17 00:00:00 2001 From: randx Date: Sun, 2 Sep 2012 15:25:54 +0300 Subject: [PATCH] Fix glm by adding id and classes to sanitize white attrs --- app/helpers/gitlab_markdown_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/gitlab_markdown_helper.rb b/app/helpers/gitlab_markdown_helper.rb index 18ce07a2..9da695b5 100644 --- a/app/helpers/gitlab_markdown_helper.rb +++ b/app/helpers/gitlab_markdown_helper.rb @@ -31,7 +31,7 @@ module GitlabMarkdownHelper extractions[$1] end - sanitize text.html_safe + sanitize text.html_safe, attributes: ActionView::Base.sanitized_allowed_attributes + %w(id class ) end # Use this in places where you would normally use link_to(gfm(...), ...).