Changeset

2072:eda5c54dfa30

mod_firewall: Anchor pattern at beginning and end
author Kim Alvefur <zash@zash.se>
date Fri, 11 Mar 2016 18:16:38 +0100
parents 2071:4161ff87e5a4
children 2073:de15606f3669
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	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;