changeset 1001:c0850793b716

mod_firewall: don't use %b() (not technically correct)
author Matthew Wild <mwild1@gmail.com>
date Wed, 08 May 2013 10:43:02 +0100
parents 8f290d50087f
children 225d3ba1eb7b
files mod_firewall/mod_firewall.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_firewall/mod_firewall.lua	Wed May 08 02:26:54 2013 +0200
+++ b/mod_firewall/mod_firewall.lua	Wed May 08 10:43:02 2013 +0100
@@ -286,7 +286,7 @@
 			local rule_code = table.concat(rule.actions, "\n\t");
 			if #rule.conditions > 0 then
 				for i, condition in ipairs(rule.conditions) do
-					local negated = condition:match("^not%b()$");
+					local negated = condition:match("^not%(.+%)$");
 					if negated then
 						condition = condition:match("^not%((.+)%)$");
 					end