fail2ban-regex: accepts filter parameters with new-line

pull/3324/head
sebres 2022-02-11 21:11:29 +01:00
parent f380d6202d
commit 7eac4ac06f
1 changed files with 1 additions and 1 deletions

View File

@ -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:]: