fix(ufw): refuse a single quote in a base rule comment
The ufw module wraps the comment in single quotes without escaping, so a quote in a ufw_rules comment failed the rules loop part-way, after earlier rules had already changed. validate.yml now refuses it before any change. Only the single quote is refused: backslash, non-ASCII and surrounding whitespace work for base rules, which are never read back as tags. Delete entries are skipped, as their comment is never sent. Refs: #221 Assisted-by: Claude Code
This commit is contained in:
1 parent
7cb99de32d
commit
592b779ad8
5 files changed
+56
-9
No files matched your search
@@ -0,0 +1,6 @@
|
||||
---
|
||||
bugfixes:
|
||||
- >-
|
||||
ufw - A single quote in the ``comment`` of a ``ufw_rules`` entry is now refused before anything changes. The
|
||||
ufw module cannot pass it to ufw, so the play failed while applying the rules, after earlier rules of the list
|
||||
had been changed. The comment of an entry with ``delete: true`` is not checked, as it is never sent.
|
||||
Reference in new issue
Block a user