Software /
code /
prosody-modules
Changeset
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 | 2533:9aed7f4e9f07 |
children | 2535:b85d88737a32 |
files | mod_firewall/conditions.lib.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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;