From ae6682cd08651ae7328fba83fc25957706a88375 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Fri, 18 Mar 2016 11:38:21 +0100 Subject: [PATCH] property strings: check for commas in values --- src/PVE/JSONSchema.pm | 1 + 1 file changed, 1 insertion(+) 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"; } } -- 2.39.2