From af267177f743271990e593265ca32ce341d483d4 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/fetchmail/trunk@1678 ab2d0c66-481e-0410-8bed-d214d4d58bed --- fetchmail-startstop-html.lsp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fetchmail-startstop-html.lsp') diff --git a/fetchmail-startstop-html.lsp b/fetchmail-startstop-html.lsp index bd4c275..48ca35d 100644 --- a/fetchmail-startstop-html.lsp +++ b/fetchmail-startstop-html.lsp @@ -2,7 +2,7 @@

Management

-
" method="POST"> +" method="POST">
Program control-panel
> @@ -23,9 +23,9 @@
Previous action result
<% if data.value.result.value ~= "" then %> -

<%= string.gsub(data.value.result.value, "\n", "
") %>

+

<%= string.gsub(html.html_escape(data.value.result.value), "\n", "
") %>

<% end if data.value.result.errtxt then %> -

<%= string.gsub(data.value.result.errtxt, "\n", "
") %>

+

<%= string.gsub(html.html_escape(data.value.result.errtxt), "\n", "
") %>

<% end end %>
-- cgit v1.2.3