author | Matthew Wild <mwild1@gmail.com> |
Wed, 16 Mar 2016 11:09:46 +0000 | |
changeset 2090 | de6b95d5e01b |
parent 2089 | 8cb8004091f8 |
child 2091 | e48dbb640408 |
child 2096 | f5d78bc016a6 |
--- a/mod_firewall/actions.lib.lua Wed Mar 16 11:42:40 2016 +0100 +++ b/mod_firewall/actions.lib.lua Wed Mar 16 11:09:46 2016 +0000 @@ -3,7 +3,7 @@ -- 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())", [["..%1.."]]) + return (s:gsub("$(%b())", [["..tostring(%1).."]]) :gsub("$(%b<>)", [["..stanza:find("%1").."]]) :gsub("$$(%a+)", extra or {})); end