summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--snort-details-html.lsp12
1 files changed, 5 insertions, 7 deletions
diff --git a/snort-details-html.lsp b/snort-details-html.lsp
index b9f8b2a..43291b9 100644
--- a/snort-details-html.lsp
+++ b/snort-details-html.lsp
@@ -4,22 +4,21 @@ html = require("acf.html")
<% viewlibrary.dispatch_component("status") %>
-<H2><%= html.html_escape(data.label) %></H2>
-<DL>
+<h2><%= html.html_escape(data.label) %></h2>
<%
if #data.value == 0 then
- io.write("No alerts found")
+ io.write("<p>No alerts found</p>")
else
for i,priority in ipairs(data.value) do %>
<h2><%= html.html_escape(priority.name) %></h2>
<% for cls in pairs(priority.value) do %>
<h3><%= html.html_escape(cls) %></h3>
<% for id,alert in pairs(priority.value[cls]) do %>
- <p><B><%= html.html_escape(alert.value[1]) %></B><BR>
+ <p><b><%= html.html_escape(alert.value[1]) %></b><br/>
<% for j=2, table.maxn(alert.value) do %>
- <%= html.html_escape(alert.value[j]) %><BR>
+ <%= html.html_escape(alert.value[j]) %><br/>
<% end %>
- <I>(This alarm is repeated <B><%= html.html_escape(alert.count) %></B> times)</I>
+ <i>(This alarm is repeated <b><%= html.html_escape(alert.count) %></b> times)</i>
<% if (table.maxn(alert.url) ~= 0) then %>
( URL's:
<% for k,url in ipairs(alert.url) do %>
@@ -32,4 +31,3 @@ else
<% end %>
<% end %>
<% end %>
-</DL>