# HG changeset patch # User Matthew Wild # Date 1485453899 0 # Node ID 01babf1caa4a7f9385080ba6f17cdeeb1c0f58ac # Parent e2d955f6167fa4e61c93f341477dbccd240f1a90 mod_firewall: Fix $<> expressions being truncated when compiled diff -r e2d955f6167f -r 01babf1caa4a mod_firewall/mod_firewall.lua --- a/mod_firewall/mod_firewall.lua Wed Jan 25 10:34:50 2017 +0100 +++ b/mod_firewall/mod_firewall.lua Thu Jan 26 18:04:59 2017 +0000 @@ -64,7 +64,7 @@ if expr:match("^@") then return "\"..(stanza.attr["..("%q"):format(expr:sub(2)).."] or "..("%q"):format(default)..")..\""; end - return "\"..(stanza:find("..("%q"):format(expr:sub(2, -2))..") or "..("%q"):format(default)..")..\""; + return "\"..(stanza:find("..("%q"):format(expr)..") or "..("%q"):format(default)..")..\""; end) :gsub("$$(%a+)", extra or {}) :gsub([[^""%.%.]], "")