fail2ban-regex: accepts filter parameters with new-line

pull/3324/head
sebres 3 years ago
parent f380d6202d
commit 7eac4ac06f

@ -334,7 +334,7 @@ class Fail2banRegex(object):
fltFile = None
fltOpt = {}
if regextype == 'fail':
if re.search(r'^/{0,3}[\w/_\-.]+(?:\[.*\])?$', value):
if re.search(r'^(?ms)/{0,3}[\w/_\-.]+(?:\[.*\])?$', value):
try:
fltName, fltOpt = extractOptions(value)
if "." in fltName[~5:]:

Loading…
Cancel
Save