# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1457716598 -3600
# Node ID eda5c54dfa30f37103eb77d4e9e57be8f4ed9c9b
# Parent  4161ff87e5a48421c1f93c0a6eed683839b1f41e
mod_firewall: Anchor pattern at beginning and end

diff -r 4161ff87e5a4 -r eda5c54dfa30 mod_firewall/conditions.lib.lua
--- a/mod_firewall/conditions.lib.lua	Fri Mar 11 18:15:58 2016 +0100
+++ b/mod_firewall/conditions.lib.lua	Fri Mar 11 18:16:38 2016 +0100
@@ -23,7 +23,7 @@
 	if not match then
 		return part.." == nil";
 	end
-	local pattern = match:match("<(.*)>");
+	local pattern = match:match("^<(.*)>$");
 	if pattern then
 		if pattern == "*" then
 			return part;