mirror of https://github.com/fail2ban/fail2ban
fail2ban-regex: accepts filter parameters with new-line
parent
f380d6202d
commit
7eac4ac06f
|
@ -334,7 +334,7 @@ class Fail2banRegex(object):
|
||||||
fltFile = None
|
fltFile = None
|
||||||
fltOpt = {}
|
fltOpt = {}
|
||||||
if regextype == 'fail':
|
if regextype == 'fail':
|
||||||
if re.search(r'^/{0,3}[\w/_\-.]+(?:\[.*\])?$', value):
|
if re.search(r'^(?ms)/{0,3}[\w/_\-.]+(?:\[.*\])?$', value):
|
||||||
try:
|
try:
|
||||||
fltName, fltOpt = extractOptions(value)
|
fltName, fltOpt = extractOptions(value)
|
||||||
if "." in fltName[~5:]:
|
if "." in fltName[~5:]:
|
||||||
|
|
Loading…
Reference in New Issue