BF: Fix fail2ban-regex not parsing journalmatch correctly

pull/1058/head
Steven Hiscocks 2015-05-09 10:26:14 +01:00
parent ab74a35b8a
commit 0c869910ea
2 changed files with 3 additions and 2 deletions

View File

@ -10,6 +10,7 @@ ver. 0.9.3 (2015/XX/XXX) - wanna-be-released
-----------
- Fixes:
* Fix fail2ban-regex not parsing journalmatch correctly from filter config
- New Features:

View File

@ -297,8 +297,8 @@ class Fail2banRegex(object):
"read from %(value)s" % locals()
return False
elif command[2] == 'addjournalmatch':
journalmatch = command[3]
self.setJournalMatch(shlex.split(journalmatch))
journalmatch = command[3:]
self.setJournalMatch(journalmatch)
elif command[2] == 'datepattern':
datepattern = command[3]
self.setDatePattern(datepattern)