From a200af1084a7659fd64ff8efc723ba93f14a6954 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 18 Jun 2021 13:11:07 +0200 Subject: [PATCH] config: limit description/comment length to 8 KiB Signed-off-by: Thomas Lamprecht --- PVE/QemuServer.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 6d9cf2d1..7630829f 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -365,7 +365,9 @@ my $confdesc = { description => { optional => 1, type => 'string', - description => "Description for the VM. Only used on the configuration web interface. This is saved as comment inside the configuration file.", + description => "Description for the VM. Shown in the web-interface VM's summary." + ." This is saved as comment inside the configuration file.", + maxLength => 1024 * 8, }, ostype => { optional => 1,