Software /
code /
prosody-modules
Diff
mod_firewall/mod_firewall.lua @ 2126:b0d711cd3da5
mod_firewall: Fix syntax error
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 17 Mar 2016 21:30:09 +0000 |
parent | 2125:edf5cf3c474b |
child | 2128:21bc4d7cddae |
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)