Mercurial > prosody-modules
diff mod_firewall/conditions.lib.lua @ 2534:13b8c31dce01
mod_firewall: Fix SCAN to pass correct variable to scan_list()
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 20 Feb 2017 13:12:51 +0000 |
parents | 3fe4ca2b55c2 |
children | acdc1767a715 |
line wrap: on
line diff
--- a/mod_firewall/conditions.lib.lua Mon Feb 20 13:12:30 2017 +0000 +++ b/mod_firewall/conditions.lib.lua Mon Feb 20 13:12:51 2017 +0000 @@ -275,7 +275,7 @@ if not (search_name) then error("Error parsing SCAN expression, syntax: SEARCH for PATTERN in LIST"); end - return ("scan_list(%s, %s)"):format(list_name, "tokens_"..search_name.."_"..pattern_name), { "scan_list", "tokens:"..search_name.."_"..pattern_name, "list:"..list_name }; + return ("scan_list(list_%s, %s)"):format(list_name, "tokens_"..search_name.."_"..pattern_name), { "scan_list", "tokens:"..search_name.."_"..pattern_name, "list:"..list_name }; end return condition_handlers;