[pve-devel] [PATCH common 1/4] property strings: check for commas in values

Wolfgang Bumiller w.bumiller at proxmox.com
Fri Mar 18 11:38:21 CET 2016


---
 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.1.4





More information about the pve-devel mailing list