From: Wolfgang Bumiller Date: Fri, 18 Mar 2016 10:38:21 +0000 (+0100) Subject: property strings: check for commas in values X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=ae6682cd08651ae7328fba83fc25957706a88375;ds=inline property strings: check for commas in values --- diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index 0603f76..ac64342 100644 --- a/src/PVE/JSONSchema.pm +++ b/src/PVE/JSONSchema.pm @@ -598,6 +598,7 @@ sub print_property_string { if ($typeformat && $typeformat eq 'disk-size') { $text .= "$key=" . format_size($value); } else { + die "illegal value with commas for $key\n" if $value =~ /,/; $text .= "$key=$value"; } }