From ccdd082c5fe3434aa9f069f6bd634ea7642d9c61 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 15 Jan 2009 21:44:39 +0000 Subject: 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 --- postfix-details-html.lsp | 2 +- postfix-listfiles-html.lsp | 6 +++--- 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("") <% viewlibrary.dispatch_component("status") %> -

<%= data.label %>

+

<%= html.html_escape(data.label) %>

<% 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("") viewlibrary.dispatch_component("status") end %> -

<%= data.label %>

+

<%= html.html_escape(data.label) %>

@@ -28,8 +28,8 @@ end %> <% for i,file in ipairs(data.value) do %> - - + + <% end %>
<%= html.link{value = "expert?filename=" .. file.filename.."&redir="..page_info.orig_action, label=file.filename} %><%= file.filesize %><%= file.mtime %><%= html.html_escape(file.filesize) %><%= html.html_escape(file.mtime) %>
-- cgit v1.2.3