Diff

mod_firewall/conditions.lib.lua @ 2584:d64fc9c3cffd

mod_firewall: Remove ambiguity from tokens dep parameter
author Matthew Wild <mwild1@gmail.com>
date Sun, 26 Feb 2017 09:50:16 +0000
parent 2582:ac3140cd89a2
child 2594:1e1c929c1aa5
line wrap: on
line diff
--- a/mod_firewall/conditions.lib.lua	Sun Feb 26 09:49:42 2017 +0000
+++ b/mod_firewall/conditions.lib.lua	Sun Feb 26 09:50:16 2017 +0000
@@ -291,7 +291,7 @@
 	if not (search_name) then
 		error("Error parsing SCAN expression, syntax: SEARCH for PATTERN in LIST");
 	end
-	return ("scan_list(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
 
 local valid_comp_ops = { [">"] = ">", ["<"] = "<", ["="] = "==", ["=="] = "==", ["<="] = "<=", [">="] = ">=" };