mirror of https://github.com/fail2ban/fail2ban
better recognition of embedded-recursive substitution to repeat interpolation
parent
33e9e2174a
commit
6b42878b8c
|
@ -407,9 +407,11 @@ class CommandAction(ActionBase):
|
||||||
done.append(found_tag)
|
done.append(found_tag)
|
||||||
m = t.search(value, m.start())
|
m = t.search(value, m.start())
|
||||||
#logSys.log(5, 'TAG: %s, newvalue: %s' % (tag, value))
|
#logSys.log(5, 'TAG: %s, newvalue: %s' % (tag, value))
|
||||||
# if was substituted, check again later:
|
# was substituted?
|
||||||
if tags[tag] != value:
|
if tags[tag] != value:
|
||||||
repFlag = True
|
# check again later if embedded-recursive substitution:
|
||||||
|
if value.startswith('<') and value.endswith('>'):
|
||||||
|
repFlag = True
|
||||||
tags[tag] = value
|
tags[tag] = value
|
||||||
if not repFlag:
|
if not repFlag:
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue