Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
Information Disclosure file scan
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijie committed Jun 8, 2016
1 parent 4a9d6d1 commit a758d77
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/templates/report.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,12 @@ <h4>{{ vulnerability.vul_type }}</h4>
<td>{{ each_vul.level }}</td>
<td>{{ each_vul.rule }}</td>
<td>
<span style="background-color: #8A8585;color: white;padding: 3px;border-radius: 3px;">{{ each_vul.file }}:{{ each_vul.line }}</span>
<pre><code class="language-php">{{ each_vul.code }}</code></pre>
{% if each_vul.line == 0 %}
<span style="background-color: #8A8585;color: white;padding: 3px;border-radius: 3px;">{{ each_vul.file }}</span>
{% else %}
<span style="background-color: #8A8585;color: white;padding: 3px;border-radius: 3px;">{{ each_vul.file }}:{{ each_vul.line }}</span>
<pre><code class="language-php">{{ each_vul.code }}</code></pre>
{% endif %}
</td>
<td>{{ each_vul.repair }}</td>
<td class="text-right">
Expand Down
1 change: 1 addition & 0 deletions engine/static.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ def analyse(self, directory=None, task_id=None, project_id=None):
# Didn't filter line when regex is empty
r_content = CobraResults.query.filter_by(task_id=task_id, rule_id=rule_id,
file=m_file).first()
m_line = 0
else:
r_content = CobraResults.query.filter_by(task_id=task_id, rule_id=rule_id,
file=m_file,
Expand Down

0 comments on commit a758d77

Please sign in to comment.