X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=src%2FPVE%2FSectionConfig.pm;fp=src%2FPVE%2FSectionConfig.pm;h=95e166abce88d8101368ee93213b7dda33532525;hp=71d296e6574f7a11d47a67083a45c5188c1b4887;hb=0cb4d663f54896ba78a8374a9f201d461d0f2449;hpb=d90a2fd0fc916746e0757db3d2c74c616ab53474 diff --git a/src/PVE/SectionConfig.pm b/src/PVE/SectionConfig.pm index 71d296e..95e166a 100644 --- a/src/PVE/SectionConfig.pm +++ b/src/PVE/SectionConfig.pm @@ -393,6 +393,9 @@ my $format_config_line = sub { my $ct = $schema->{type}; + die "property '$key' contains a line feed\n" + if ($key =~ m/[\n\r]/) || ($value =~ m/[\n\r]/); + if ($ct eq 'boolean') { return $value ? "\t$key\n" : ''; } else {