--- a/mod_firewall/actions.lib.lua Thu Mar 17 21:27:24 2016 +0000
+++ b/mod_firewall/actions.lib.lua Thu Mar 17 21:29:07 2016 +0000
@@ -1,13 +1,7 @@
+--luacheck: globals meta idsafe
local action_handlers = {};
--- Run code through this to allow strings to contain code. e.g.: LOG=Received: $(stanza:top_tag())
-local function meta(s, extra)
- return (s:gsub("$(%b())", [["..tostring(%1).."]])
- :gsub("$(%b<>)", [["..stanza:find("%1").."]])
- :gsub("$$(%a+)", extra or {}));
-end
-
-- Takes an XML string and returns a code string that builds that stanza
-- using st.stanza()
local function compile_xml(data)