From e466f896d5cced2a2e93b5e7456a9eeac7ca98ed Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 18 Jun 2021 13:13:24 +0200 Subject: [PATCH] node config: limit description/comment length to 64 KiB Signed-off-by: Thomas Lamprecht --- PVE/NodeConfig.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PVE/NodeConfig.pm b/PVE/NodeConfig.pm index 07e7077f..df44410f 100644 --- a/PVE/NodeConfig.pm +++ b/PVE/NodeConfig.pm @@ -80,7 +80,9 @@ sub lock_config { my $confdesc = { description => { type => 'string', - description => 'Node description/comment.', + description => "Description for the Node. Shown in the web-interface node notes panel." + ." This is saved as comment inside the configuration file.", + maxLength => 64 * 1024, optional => 1, }, wakeonlan => {