fail2ban-regex: accepts filter parameters with new-line

pull/3229/head
sebres 2022-02-11 21:11:29 +01:00
parent 96121830da
commit b83712e3ec
1 changed files with 1 additions and 1 deletions

View File

@ -331,7 +331,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:]: