From 904b362215e587c1038e556681a787cea61eeccc Mon Sep 17 00:00:00 2001 From: Steven Hiscocks Date: Fri, 9 May 2014 20:25:44 +0100 Subject: [PATCH] DOC: ChangeLog update for recursive tag bug fix Also minor typo fixes in comments --- ChangeLog | 2 ++ fail2ban/server/action.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index bbe32054..ec6a3b28 100644 --- a/ChangeLog +++ b/ChangeLog @@ -22,6 +22,8 @@ ver. 0.9.1 (2014/xx/xx) - better, faster, stronger * Nginx filter to support missing server_name. Closes gh-676 * fail2ban-regex assertion error caused by miscount missed lines with multiline regex + * Recursive action tags now fully processed. Fixes issue with bsd-ipfw + action - New features: diff --git a/fail2ban/server/action.py b/fail2ban/server/action.py index d1883338..736386b1 100644 --- a/fail2ban/server/action.py +++ b/fail2ban/server/action.py @@ -373,7 +373,7 @@ class CommandAction(ActionBase): t = re.compile(r'<([^ >]+)>') for tag in tags.iterkeys(): if tag.endswith('matches'): - # Escapped so wont match + # Escapped so won't match continue value = str(tags[tag]) m = t.search(value) @@ -387,7 +387,7 @@ class CommandAction(ActionBase): #logSys.log(5, 'recursion fail tag: %s value: %s' % (tag, value) ) return False elif found_tag.endswith('matches'): - # Escapped so wont match + # Escapped so won't match continue else: if tags.has_key(found_tag):