From 021d8e0943124418804973e04172435f4cc101d9 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/openntpd/trunk@1678 ab2d0c66-481e-0410-8bed-d214d4d58bed --- openntpd-config-html.lsp | 2 +- openntpd-details-html.lsp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openntpd-config-html.lsp b/openntpd-config-html.lsp index 72ba5b6..3c03dc1 100644 --- a/openntpd-config-html.lsp +++ b/openntpd-config-html.lsp @@ -15,7 +15,7 @@ io.write("") viewlibrary.dispatch_component("status") end %> -

<%= form.label %>

+

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

<% form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action local order = { "setstimeonstartup", "listen", "server", "servers" } diff --git a/openntpd-details-html.lsp b/openntpd-details-html.lsp index 0aa9292..125e4b4 100644 --- a/openntpd-details-html.lsp +++ b/openntpd-details-html.lsp @@ -13,7 +13,7 @@ io.write("") viewlibrary.dispatch_component("status") end %> -

<%= data.label %>

+

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

<% displayitem(data.value.date) -- cgit v1.2.3