- 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-b1dcaea8d605
0.x
Cyril Jaquier 2006-10-30 23:02:05 +00:00
parent 150a6abd0d
commit 1f5556981a
1 changed files with 4 additions and 1 deletions

View File

@ -128,5 +128,8 @@ class JailReader(ConfigReader):
if not m.group(2) == None:
for param in m.group(2).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]