mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
Escape ' and " in matches tag
This commit is contained in:
parent
9a39292813
commit
96eb8986cc
1 changed files with 1 additions and 1 deletions
|
|
@ -243,7 +243,7 @@ class Action:
|
|||
return Action.executeCmd(stopCmd)
|
||||
|
||||
def escapeTag(tag):
|
||||
for c in '\\#&;`|*?~<>^()[]{}$\n':
|
||||
for c in '\\#&;`|*?~<>^()[]{}$\n\'"':
|
||||
if c in tag:
|
||||
tag = tag.replace(c, '\\' + c)
|
||||
return tag
|
||||
|
|
|
|||
Loading…
Reference in a new issue