summaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2013-05-31 02:27:17 +0000
committerTed Trask <ttrask01@yahoo.com>2013-05-31 02:27:17 +0000
commit19d4f3084c3e11fbb25f556c528c156cf732c320 (patch)
treef110d9afdc107247eab79b0cddbe2623dd6a58da /lua
parent3d4463e2b16596960ff7ba44a93b87afeeea2831 (diff)
downloadacf-core-19d4f3084c3e11fbb25f556c528c156cf732c320.tar.bz2
acf-core-19d4f3084c3e11fbb25f556c528c156cf732c320.tar.xz
Replace mvc logevent use of os.execute with subprocess.open
Diffstat (limited to 'lua')
-rwxr-xr-xlua/mvc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/mvc.lua b/lua/mvc.lua
index 863b45f..51e6eaa 100755
--- a/lua/mvc.lua
+++ b/lua/mvc.lua
@@ -7,6 +7,7 @@
module(..., package.seeall)
require("posix")
+require("subprocess")
format = require("acf.format")
-- For security, set the path
@@ -425,8 +426,7 @@ end
_G.cfe = cfe
logevent = function ( message )
- os.execute ( "logger \"ACF: " .. string.gsub(message or "", "[`\\\"]", "\\%1") .. "\"" )
-
+ subprocess.call({"logger", "ACF: " .. (message or "")})
end
handle_clientdata = function(form, clientdata)