diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-04-03 18:03:01 +0200 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-04-03 18:03:01 +0200 |
commit | 9d647197da793b429102755e069686e6928de26e (patch) | |
tree | 4003f522162288a0caaf9cf43522934d7f218279 /app/helpers | |
parent | 7b9ae32eff09558cf55190b5aed32ad97b31bf55 (diff) | |
download | gitlab-ce-9d647197da793b429102755e069686e6928de26e.tar.gz |
Don't require user to every gfm call.
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/gitlab_markdown_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/gitlab_markdown_helper.rb b/app/helpers/gitlab_markdown_helper.rb index a4157d62533..7ca3f058636 100644 --- a/app/helpers/gitlab_markdown_helper.rb +++ b/app/helpers/gitlab_markdown_helper.rb @@ -19,7 +19,7 @@ module GitlabMarkdownHelper escape_once(body) end - gfm_body = gfm(escaped_body, @project, current_user, html_options) + gfm_body = gfm(escaped_body, @project, html_options) gfm_body.gsub!(%r{<a.*?>.*?</a>}m) do |match| "</a>#{match}#{link_to("", url, html_options)[0..-5]}" # "</a>".length +1 |