summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2009-01-15 21:44:39 +0000
committerTed Trask <ttrask01@yahoo.com>2009-01-15 21:44:39 +0000
commitccdd082c5fe3434aa9f069f6bd634ea7642d9c61 (patch)
tree0f7e7c3e0e5881cb26c49c49f650ff1812527772
parent693030035ed1152f8ec7144a622e9122c373c026 (diff)
downloadacf-postfix-ccdd082c5fe3434aa9f069f6bd634ea7642d9c61.tar.bz2
acf-postfix-ccdd082c5fe3434aa9f069f6bd634ea7642d9c61.tar.xz
Modified html.lua and viewlibrary.lua and all html files to html_escape variables before displaying them.
git-svn-id: svn://svn.alpinelinux.org/acf/postfix/trunk@1678 ab2d0c66-481e-0410-8bed-d214d4d58bed
-rw-r--r--postfix-details-html.lsp2
-rw-r--r--postfix-listfiles-html.lsp6
2 files changed, 4 insertions, 4 deletions
diff --git a/postfix-details-html.lsp b/postfix-details-html.lsp
index f60bb13..b8a4ce7 100644
--- a/postfix-details-html.lsp
+++ b/postfix-details-html.lsp
@@ -9,7 +9,7 @@ io.write("</span>")
<% viewlibrary.dispatch_component("status") %>
-<H2><%= data.label %></H2>
+<H2><%= html.html_escape(data.label) %></H2>
<DL>
<%
displayitem(data)
diff --git a/postfix-listfiles-html.lsp b/postfix-listfiles-html.lsp
index ea54404..f94653b 100644
--- a/postfix-listfiles-html.lsp
+++ b/postfix-listfiles-html.lsp
@@ -15,7 +15,7 @@ io.write("</span>")
viewlibrary.dispatch_component("status")
end %>
-<h1><%= data.label %></h1>
+<h1><%= html.html_escape(data.label) %></h1>
<TABLE>
<TR style="background:#eee;font-weight:bold;">
@@ -28,8 +28,8 @@ end %>
<% for i,file in ipairs(data.value) do %>
<TR>
<TD style="padding-right:20px;white-space:nowrap;"><%= html.link{value = "expert?filename=" .. file.filename.."&redir="..page_info.orig_action, label=file.filename} %></TD>
- <TD style="padding-right:20px;white-space:nowrap;"><%= file.filesize %></TD>
- <TD style="white-space:nowrap;" width="90%"><%= file.mtime %></TD>
+ <TD style="padding-right:20px;white-space:nowrap;"><%= html.html_escape(file.filesize) %></TD>
+ <TD style="white-space:nowrap;" width="90%"><%= html.html_escape(file.mtime) %></TD>
</TR>
<% end %>
</TABLE>