Changeset

2126:b0d711cd3da5

mod_firewall: Fix syntax error
author Matthew Wild <mwild1@gmail.com>
date Thu, 17 Mar 2016 21:30:09 +0000
parents 2125:edf5cf3c474b
children 2127:59023dffbdd4
files mod_firewall/mod_firewall.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_firewall/mod_firewall.lua	Thu Mar 17 21:29:07 2016 +0000
+++ b/mod_firewall/mod_firewall.lua	Thu Mar 17 21:30:09 2016 +0000
@@ -48,7 +48,7 @@
 		:gsub("$(%b<>)", function (expr)
 			expr = expr:sub(2,-2);
 			if expr:match("^@") then
-				return "\"..stanza.attr["..(%q):format(expr:sub(2)).."]..\"";
+				return "\"..stanza.attr["..("%q"):format(expr:sub(2)).."]..\"";
 			end
 			return "\"..stanza:find("..("%q"):format(expr:sub(2, -2))..")..\"";
 		end)