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 | af267177f743271990e593265ca32ce341d483d4 (patch) | |
tree | f50faf5e7fcd9555de2573dd30886529270647c1 /fetchmail-listentries-html.lsp | |
parent | 6e604e9c75b1ba9698242ef0700eb14c2bc3b137 (diff) | |
download | acf-fetchmail-af267177f743271990e593265ca32ce341d483d4.tar.bz2 acf-fetchmail-af267177f743271990e593265ca32ce341d483d4.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/fetchmail/trunk@1678 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'fetchmail-listentries-html.lsp')
-rw-r--r-- | fetchmail-listentries-html.lsp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fetchmail-listentries-html.lsp b/fetchmail-listentries-html.lsp index 9ddcf64..32b550a 100644 --- a/fetchmail-listentries-html.lsp +++ b/fetchmail-listentries-html.lsp @@ -27,17 +27,17 @@ io.write("</span>") <% io.write(html.link{value = "editentry?entry=" .. entry.entry.."&method="..entry.method.."&remotemailbox="..entry.remotemailbox.."&localdomain="..entry.localdomain.."&redir="..page_info.orig_action, label="Edit " }) %> <% io.write(html.link{value = "deleteentry?entry=" .. entry.entry.."&method="..entry.method.."&remotemailbox="..entry.remotemailbox.."&localdomain="..entry.localdomain, label="Delete " }) %> </TD> - <TD style="padding-right:20px;white-space:nowrap;"><%= entry.entry %></TD> - <TD style="padding-right:20px;white-space:nowrap;"><%= entry.enabled %></TD> - <TD style="padding-right:20px;white-space:nowrap;"><%= entry.method %></TD> - <TD style="white-space:nowrap;" width="90%"><% if entry.localdomain and entry.localdomain ~= "" then io.write(entry.localdomain) else io.write(entry.remotemailbox) end %></TD> + <TD style="padding-right:20px;white-space:nowrap;"><%= html.html_escape(entry.entry) %></TD> + <TD style="padding-right:20px;white-space:nowrap;"><%= html.html_escape(entry.enabled) %></TD> + <TD style="padding-right:20px;white-space:nowrap;"><%= html.html_escape(entry.method) %></TD> + <TD style="white-space:nowrap;" width="90%"><% if entry.localdomain and entry.localdomain ~= "" then io.write(html.html_escape(entry.localdomain)) else io.write(html.html_escape(entry.remotemailbox)) end %></TD> </TR> <% end %> </TABLE> <DT>Add new entry</DT> -<DD><form action="<%= page_info.script .. page_info.prefix .. page_info.controller .. "/createentry" %>" method="POST"> -<input class="hidden" type="hidden" name="redir" value="<%= page_info.orig_action %>" > +<DD><form action="<%= html.html_escape(page_info.script .. page_info.prefix .. page_info.controller .. "/createentry") %>" method="POST"> +<input class="hidden" type="hidden" name="redir" value="<%= html.html_escape(page_info.orig_action) %>" > <input type=submit value="New" class="submit"> </form></DD> </DL> |