summaryrefslogtreecommitdiffstats
path: root/ipsectools-uploadcert-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2009-01-21 22:04:37 +0000
committerTed Trask <ttrask01@yahoo.com>2009-01-21 22:04:37 +0000
commitc5b5d2cd94c44e2322cf12594e1cfb1c6f44daf4 (patch)
treea58f341b0666eddf7fd94d2f2215c712c80da3d1 /ipsectools-uploadcert-html.lsp
parent2b648a4ecbbf0d34cac13238ae77cf378f79696b (diff)
downloadacf-ipsec-tools-c5b5d2cd94c44e2322cf12594e1cfb1c6f44daf4.tar.bz2
acf-ipsec-tools-c5b5d2cd94c44e2322cf12594e1cfb1c6f44daf4.tar.xz
Added escapespecialcharacters to format.lua to escape shell special characters. Reviewed all calls to io.popen and os.execute to escape special characters. Fixed file uploads in openssl and ipsectools with viewfunctions.lua. Tried to fix openssl renew when subject contains special characters, but not done yet.
git-svn-id: svn://svn.alpinelinux.org/acf/ipsec-tools/trunk@1687 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'ipsectools-uploadcert-html.lsp')
-rw-r--r--ipsectools-uploadcert-html.lsp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipsectools-uploadcert-html.lsp b/ipsectools-uploadcert-html.lsp
index 02ed7a0..ad503c3 100644
--- a/ipsectools-uploadcert-html.lsp
+++ b/ipsectools-uploadcert-html.lsp
@@ -7,8 +7,8 @@ io.write(html.cfe_unpack(form))
<H1><%= html.html_escape(form.label) %></H1>
<%
- -- This is a kludge to get file upload working
- form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action .. '" enctype="multipart/form-data'
+ form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action
+ form.enctype = "multipart/form-data"
form.value.cert.type="file"
form.value.password.type="password"
local order = {"cert", "password"}