提交 b53865b4 编写于 作者: J Justin Collins

Relative paths for HTML output

上级 0e9c904c
...@@ -552,7 +552,7 @@ class Brakeman::Report ...@@ -552,7 +552,7 @@ class Brakeman::Report
message message
end << end <<
"<table id='#{code_id}' class='context' style='display:none'>" << "<table id='#{code_id}' class='context' style='display:none'>" <<
"<caption>#{(warning.file || '').gsub(tracker.options[:app_path], "")}</caption>" "<caption>#{warning_file(warning, :relative) || ''}</caption>"
unless context.empty? unless context.empty?
if warning.line - 1 == 1 or warning.line + 1 == 1 if warning.line - 1 == 1 or warning.line + 1 == 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册