]> git.proxmox.com Git - pve-manager.git/commit - PVE/VZDump.pm
vzdump: verify parameters: properly verify notes-template
authorFabian Ebner <f.ebner@proxmox.com>
Mon, 9 May 2022 10:34:08 +0000 (12:34 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 12 May 2022 15:17:48 +0000 (17:17 +0200)
commitfacf65a6e023bf06bd8989f0f072625b75a17de3
tree4a05d2a7f8ba4bc2fa7ecf67d878dba7bb1912dc
parent1992003e00b75856357c96be0ecd0a258d2d7dba
vzdump: verify parameters: properly verify notes-template

instead of just checking for a newline, do a full check already.

Also do the check at the beginning of generate_notes() for consistency
and remove the check after expansion to avoid failing late for things
like '{{cl{{node}}er}}' (which can even expand to a valid variable
making the error even more confusing).

Co-developed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/VZDump.pm