summaryrefslogtreecommitdiffstats
path: root/tinydns-model.lua
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
commit915d1fad6706564c7e9aee02e860577e03008302 (patch)
tree6f8289ff77566c3811729a44d02674c34bddc5e3 /tinydns-model.lua
parent6372cab4e2e4ae99d6eedcb6318ce7b71229df2c (diff)
downloadacf-tinydns-915d1fad6706564c7e9aee02e860577e03008302.tar.bz2
acf-tinydns-915d1fad6706564c7e9aee02e860577e03008302.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/tinydns/trunk@1687 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'tinydns-model.lua')
-rw-r--r--tinydns-model.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tinydns-model.lua b/tinydns-model.lua
index 6b77acc..602f416 100644
--- a/tinydns-model.lua
+++ b/tinydns-model.lua
@@ -309,7 +309,7 @@ function remove_file(self, path, userid)
if not (fs.is_file(path)) then
errtxt = "File doesn't exist!"
elseif (validfilename(path)) then
- local cmd, errors = io.popen( "/bin/rm " .. path, r )
+ local cmd, errors = io.popen( "/bin/rm " .. format.escapespecialcharacters(path), r )
local cmdoutput = cmd:read("*a")
cmd:close()
success = "File Deleted"