# HG changeset patch # User Matthew Wild # Date 1488041625 0 # Node ID 00cef058df8d7428f3c72701ca496c6716c14b1a # Parent 95b79d515a6569c3d742e87f88c34b04665e62c3 mod_firewall: TO/FROM ADMIN OF: Fix string quoting diff -r 95b79d515a65 -r 00cef058df8d mod_firewall/conditions.lib.lua --- a/mod_firewall/conditions.lib.lua Sat Feb 25 15:48:20 2017 +0000 +++ b/mod_firewall/conditions.lib.lua Sat Feb 25 16:53:45 2017 +0000 @@ -156,11 +156,11 @@ end function condition_handlers.FROM_ADMIN_OF(host) - return ("is_admin(bare_from, %s)"):format(host ~= "*" and host or nil), { "is_admin", "bare_from" }; + return ("is_admin(bare_from, %s)"):format(host ~= "*" and metaq(host) or nil), { "is_admin", "bare_from" }; end function condition_handlers.TO_ADMIN_OF(host) - return ("is_admin(bare_to, %s)"):format(host ~= "*" and host or nil), { "is_admin", "bare_to" }; + return ("is_admin(bare_to, %s)"):format(host ~= "*" and metaq(host) or nil), { "is_admin", "bare_to" }; end function condition_handlers.FROM_ADMIN()