提交 d5ab9d2c 编写于 作者: J Justin

Merge pull request #625 from presidentbeef/remove_uri_escape_from_html_report

Remove URI.escape from HTML report with GitHub repo url
......@@ -195,7 +195,7 @@ class Brakeman::Report::HTML < Brakeman::Report::Base
if warning.file
github_url = github_url warning.file, warning.line
message.gsub!(/(near line \d+)/, "<a href='#{URI.escape github_url, /'/}' target='_blank'>\\1</a>") if github_url
message.gsub!(/(near line \d+)/, "<a href=\"#{github_url}\" target='_blank'>\\1</a>") if github_url
end
if @highlight_user_input and warning.user_input
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册