| Handle empty fingerprints better - warvox - VoIP based wardialing tool, forked … | |
| Log | |
| Files | |
| Refs | |
| README | |
| --- | |
| commit 1e452fb1bfce901225ae239580f2d05c269c8e73 | |
| parent 4fc4e0581fc91a4856e94c089aa1f34c4f2aa001 | |
| Author: HD Moore <[email protected]> | |
| Date: Thu, 27 Dec 2012 00:06:02 -0600 | |
| Handle empty fingerprints better | |
| Diffstat: | |
| M app/views/analyze/view.html.erb | 4 ++-- | |
| 1 file changed, 2 insertions(+), 2 deletions(-) | |
| --- | |
| diff --git a/app/views/analyze/view.html.erb b/app/views/analyze/view.html.erb | |
| @@ -42,7 +42,7 @@ | |
| <td align='center'> | |
| <b><%=h dial_result.line_type.upcase %></b><br/> | |
| <a href="<%=resource_analyze_path(@job_id, dial_result.id, "bi… | |
| - <a href="<%=resource_analyze_path(@job_id, dial_result.id, "bi… | |
| + <a href="<%=resource_analyze_path(@job_id, dial_result.id, "bi… | |
| <% (dial_result.signatures||"").split("\n").each do |s| | |
| sid,mat,name = s.split(':', 3) | |
| str = [mat.to_i * 6.4, 255].min | |
| @@ -50,7 +50,7 @@ | |
| %> | |
| <div style="color: #<%= col%>;"><%=h name%> (<%=h sid … | |
| <% end %> | |
| - <% if dial_result.fprint %> | |
| + <% if dial_result.fprint and dial_result.fprint.to_s != '{}' %> | |
| <a href="<%=view_matches_path(dial_result.id)%>">View … | |
| <% end %> | |
| </td> |