summaryrefslogtreecommitdiffstats
path: root/openssh-listauth-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2009-04-01 14:44:51 +0000
committerTed Trask <ttrask01@yahoo.com>2009-04-01 14:44:51 +0000
commit1d4de0dba3e3cc249b59143e2872e0a5f7c9ccde (patch)
tree5a97cc54d82db0d820206dfcb9bd38ab8fbf799e /openssh-listauth-html.lsp
parentb1ef9b435646872c63d6547eab840f3d7bbf845d (diff)
downloadacf-openssh-1d4de0dba3e3cc249b59143e2872e0a5f7c9ccde.tar.bz2
acf-openssh-1d4de0dba3e3cc249b59143e2872e0a5f7c9ccde.tar.xz
Fixed openssh authorized keys parsing to allow for access phrase and arbitrary characters.
Diffstat (limited to 'openssh-listauth-html.lsp')
-rw-r--r--openssh-listauth-html.lsp6
1 files changed, 5 insertions, 1 deletions
diff --git a/openssh-listauth-html.lsp b/openssh-listauth-html.lsp
index d93bc8b..dc2507c 100644
--- a/openssh-listauth-html.lsp
+++ b/openssh-listauth-html.lsp
@@ -14,7 +14,11 @@
<% for i,auth in ipairs(view.value.auth.value) do %>
<TR>
<TD style="padding-right:20px;white-space:nowrap;">
- <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/deleteauth?user="..view.value.user.value.."&auth="..auth.id, label="Delete "} %>
+<form action="<%= html.html_escape(page_info.script..page_info.prefix..page_info.controller.."/deleteauth") %>" method="POST">
+<input class="hidden" type="hidden" name="user" value="<%= html.html_escape(view.value.user.value) %>">
+<input class="hidden" type="hidden" name="auth" value="<%= html.html_escape(auth.id) %>">
+<input class="submit" type="submit" name="Delete" value="Delete"></DD>
+</form>
</TD>
<TD style="padding-right:20px;white-space:nowrap;"><%= html.html_escape(auth.id) %></TD>
<TD style="white-space:nowrap;"><% if #auth.key>32 then io.write(html.html_escape(string.sub(auth.key,0,16)) .. " ... " .. html.html_escape(string.sub(auth.key, -16))) else io.write(html.html_escape(auth.key)) end %></TD>