mirror of https://github.com/fail2ban/fail2ban
commit
7d630cb0de
|
@ -243,7 +243,7 @@ class Action:
|
||||||
return Action.executeCmd(stopCmd)
|
return Action.executeCmd(stopCmd)
|
||||||
|
|
||||||
def escapeTag(tag):
|
def escapeTag(tag):
|
||||||
for c in '\\#&;`|*?~<>^()[]{}$\n':
|
for c in '\\#&;`|*?~<>^()[]{}$\n\'"':
|
||||||
if c in tag:
|
if c in tag:
|
||||||
tag = tag.replace(c, '\\' + c)
|
tag = tag.replace(c, '\\' + c)
|
||||||
return tag
|
return tag
|
||||||
|
|
Loading…
Reference in New Issue