diff options
author | Ted Trask <ttrask01@yahoo.com> | 2013-05-31 02:27:17 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2013-05-31 02:27:17 +0000 |
commit | 19d4f3084c3e11fbb25f556c528c156cf732c320 (patch) | |
tree | f110d9afdc107247eab79b0cddbe2623dd6a58da /lua | |
parent | 3d4463e2b16596960ff7ba44a93b87afeeea2831 (diff) | |
download | acf-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-x | lua/mvc.lua | 4 |
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) |