diff options
author | Ted Trask <ttrask01@yahoo.com> | 2009-01-15 21:44:39 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2009-01-15 21:44:39 +0000 |
commit | ccdd082c5fe3434aa9f069f6bd634ea7642d9c61 (patch) | |
tree | 0f7e7c3e0e5881cb26c49c49f650ff1812527772 /postfix-listfiles-html.lsp | |
parent | 693030035ed1152f8ec7144a622e9122c373c026 (diff) | |
download | acf-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
Diffstat (limited to 'postfix-listfiles-html.lsp')
-rw-r--r-- | postfix-listfiles-html.lsp | 6 |
1 files changed, 3 insertions, 3 deletions
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> |