summaryrefslogtreecommitdiffstats
path: root/lib/menubuilder.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
commite5cdb84647b17427ed0f8afc77ab83af6f537ac0 (patch)
treea08a425cb3704fbc75143d09715c6815ed3ec6f6 /lib/menubuilder.lua
parent1a930fe2020e3d309f4716c4814d1dd8a92ee03c (diff)
downloadacf-core-e5cdb84647b17427ed0f8afc77ab83af6f537ac0.tar.bz2
acf-core-e5cdb84647b17427ed0f8afc77ab83af6f537ac0.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.release-0.4.19
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1687 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'lib/menubuilder.lua')
-rw-r--r--lib/menubuilder.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/menubuilder.lua b/lib/menubuilder.lua
index c7ff075..4105db6 100644
--- a/lib/menubuilder.lua
+++ b/lib/menubuilder.lua
@@ -5,12 +5,14 @@
]]--
module(..., package.seeall)
+require("format")
+
-- returns a table of the "*.menu" tables
-- uses the system "find" command
-- startdir should be the app dir.
local get_candidates = function (startdir)
local t = {}
- local fh = io.popen('find ' .. startdir .. ' -name "*.menu"')
+ local fh = io.popen('find ' .. format.escapespecialcharacters(startdir) .. ' -name "*.menu"')
for x in fh:lines() do
t[#t + 1] = x
end