node config: limit description/comment length to 64 KiB

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-06-18 13:13:24 +02:00
parent 8cbc969924
commit 7a3b5a212c

View File

@ -80,7 +80,9 @@ sub lock_config {
my $confdesc = { my $confdesc = {
description => { description => {
type => 'string', 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, optional => 1,
}, },
wakeonlan => { wakeonlan => {