diff options
author | Ted Trask <ttrask01@yahoo.com> | 2012-04-13 13:01:08 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2012-04-13 13:01:08 +0000 |
commit | b125e4af5075a273a5c6336f97207c1bc9c9a29e (patch) | |
tree | 8b5c9d162ec56faaeef1be88f3cfc4892d9eec44 | |
parent | 375251d798e358c3862073511f850b0df10332e5 (diff) | |
download | acf-core-b125e4af5075a273a5c6336f97207c1bc9c9a29e.tar.bz2 acf-core-b125e4af5075a273a5c6336f97207c1bc9c9a29e.tar.xz |
Fixed mvc logevent to escape special characters
-rwxr-xr-x | lua/mvc.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/mvc.lua b/lua/mvc.lua index ca48be6..eff7050 100755 --- a/lua/mvc.lua +++ b/lua/mvc.lua @@ -7,6 +7,7 @@ module(..., package.seeall) require("posix") +format = require("acf.format") mvc = {} @@ -428,7 +429,7 @@ end _G.cfe = cfe logevent = function ( ... ) - os.execute ( "logger \"ACF: " .. (... or "") .. "\"" ) + os.execute ( "logger \"ACF: " .. format.escapespecialcharacters(...) .. "\"" ) end handle_clientdata = function(form, clientdata) |