summaryrefslogtreecommitdiffstats
path: root/health-system-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'health-system-html.lsp')
-rw-r--r--health-system-html.lsp14
1 files changed, 7 insertions, 7 deletions
diff --git a/health-system-html.lsp b/health-system-html.lsp
index 8ee3572..9fcea6f 100644
--- a/health-system-html.lsp
+++ b/health-system-html.lsp
@@ -3,22 +3,22 @@
<h1>System</h1>
<h2>Versions and names</h2>
-<pre><%= view.value.version.value %></pre>
-<pre><%= view.value.uname.value %></pre>
+<pre><%= html.html_escape(view.value.version.value) %></pre>
+<pre><%= html.html_escape(view.value.uname.value) %></pre>
<h2>Uptime</h2>
-<pre><%= view.value.uptime.value %></pre>
+<pre><%= html.html_escape(view.value.uptime.value) %></pre>
<h2>Time/TimeZone</h2>
-<pre><%= view.value.date.value %></pre>
-<pre><%= view.value.timezone.value %></pre>
+<pre><%= html.html_escape(view.value.date.value) %></pre>
+<pre><%= html.html_escape(view.value.timezone.value) %></pre>
<h2>Memory</h2>
-<pre><%= view.value.memory.value %></pre>
+<pre><%= html.html_escape(view.value.memory.value) %></pre>
<TABLE STYLE="margin:0px;padding:0px;border:0px">
<TR>
- <TD>0%</TD><TD WIDTH="<%= view.value.memory.used %>%" STYLE="background:red;border:2px solid black;border-right:none;"><CENTER><B><% if ( tonumber(view.value.memory.used) > 10) then io.write(view.value.memory.used .. "%") end %></B></CENTER></TD><TD WIDTH="<%= (100-view.value.memory.used) %>%" STYLE="background:#0c0;border:2px solid black;border-left:none;""><CENTER><B><% if ( 90 > tonumber(view.value.memory.used)) then io.write((100-view.value.memory.used) .. "%") end %></B></CENTER></TD><TD>100%</TD>
+ <TD>0%</TD><TD WIDTH="<%= html.html_escape(view.value.memory.used) %>%" STYLE="background:red;border:2px solid black;border-right:none;"><CENTER><B><% if ( tonumber(view.value.memory.used) > 10) then io.write(html.html_escape(view.value.memory.used) .. "%") end %></B></CENTER></TD><TD WIDTH="<%= (100-tonumber(view.value.memory.used)) %>%" STYLE="background:#0c0;border:2px solid black;border-left:none;""><CENTER><B><% if ( 90 > tonumber(view.value.memory.used)) then io.write((100-tonumber(view.value.memory.used)) .. "%") end %></B></CENTER></TD><TD>100%</TD>
</TR>
</TABLE>
<TABLE STYLE="margin:0px;padding:0px;border:0px;margin-top:5px;">