mirror of https://github.com/fail2ban/fail2ban
- Fixed exception if wrong use of ','. Thanks to Yaroslav Halchenko
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@438 a942ae1a-1317-0410-a47c-b1dcaea8d6050.x
parent
150a6abd0d
commit
1f5556981a
|
@ -128,5 +128,8 @@ class JailReader(ConfigReader):
|
||||||
if not m.group(2) == None:
|
if not m.group(2) == None:
|
||||||
for param in m.group(2).split(','):
|
for param in m.group(2).split(','):
|
||||||
p = param.split('=')
|
p = param.split('=')
|
||||||
d[p[0].strip()] = p[1].strip()
|
try:
|
||||||
|
d[p[0].strip()] = p[1].strip()
|
||||||
|
except IndexError:
|
||||||
|
logSys.error("Invalid argument %s in '%s'" % (p, m.group(2)))
|
||||||
return [m.group(1), d]
|
return [m.group(1), d]
|
||||||
|
|
Loading…
Reference in New Issue