Diff

mod_firewall/mod_firewall.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 2583:b6b10f57aa56
child 2585:02c6ae745c4f
line wrap: on
line diff
--- a/mod_firewall/mod_firewall.lua	Sun Feb 26 09:49:42 2017 +0000
+++ b/mod_firewall/mod_firewall.lua	Sun Feb 26 09:50:16 2017 +0000
@@ -237,7 +237,7 @@
 	};
 	tokens = {
 		local_code = function (search_and_pattern)
-			local search_name, pattern_name = search_and_pattern:match("^([^%-]+)_(.+)$");
+			local search_name, pattern_name = search_and_pattern:match("^([^%-]+)-(.+)$");
 			local code = ([[local tokens_%s_%s = {};
 			if search_%s then
 				for s in search_%s:gmatch(pattern_%s) do