Skip to content
This repository was archived by the owner on Feb 25, 2021. It is now read-only.

Commit 5de7c26

Browse files
committed
sync with API_Fuzzer
1 parent fee387e commit 5de7c26

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

.byebug_history

Lines changed: 0 additions & 2 deletions
This file was deleted.

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
GIT
22
remote: https://github.com/lalithr95/API-fuzzer.git
3-
revision: 539deabfd9b8fd88de6004e8f91c94f0054992d4
3+
revision: 26b60e42caa460d9c6f456f152de0f03bab4111f
44
specs:
55
API_Fuzzer (0.1.0)
66
activesupport

app/helpers/scans_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def headers_parser(headers)
3434
if key.downcase == 'cookie'
3535
parsed_cookies = cookies_parser(value)
3636
else
37-
parsed_headers[key] = value
37+
parsed_headers[key] = value.gsub('\r', '') if value
3838
end
3939
end
4040
[parsed_headers, parsed_cookies]

app/views/scans/show.html.erb

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,19 @@
1515
</thead>
1616
<tbody>
1717
<% @vulnerabilities.each_with_index do |vulnerability, index| %>
18-
<tr class="<%= tr_class(vulnerability.status) if vulnerability.class_type == 'Vulnerability' %>">
19-
<td><%= index + 1 %></td>
20-
<td>
21-
<b><span class="tag <%= badge(vulnerability.status) %>">
22-
<%= vulnerability.status %>
23-
</span></b>
24-
</td>
25-
<td><%= vulnerability.description %></td>
26-
<td><%= vulnerability.parameter %></td>
27-
<td><%= vulnerability.value %></td>
28-
</tr>
18+
<% if vulnerability.class_type == 'Vulnerability' %>
19+
<tr class="<%= tr_class(vulnerability.status) %>">
20+
<td><%= index + 1 %></td>
21+
<td>
22+
<b><span class="tag <%= badge(vulnerability.status) %>">
23+
<%= vulnerability.status %>
24+
</span></b>
25+
</td>
26+
<td><%= vulnerability.description %></td>
27+
<td><%= vulnerability.parameter %></td>
28+
<td><%= vulnerability.value %></td>
29+
</tr>
30+
<% end %>
2931
<% end %>
3032
</tbody>
3133
</table>

0 commit comments

Comments
 (0)