projects
/
pve-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ed28a8
)
property strings: check for commas in values
author
Wolfgang Bumiller
<w.bumiller@proxmox.com>
Fri, 18 Mar 2016 10:38:21 +0000
(11:38 +0100)
committer
Dietmar Maurer
<dietmar@proxmox.com>
Mon, 21 Mar 2016 07:03:55 +0000
(08:03 +0100)
src/PVE/JSONSchema.pm
patch
|
blob
|
blame
|
history
diff --git
a/src/PVE/JSONSchema.pm
b/src/PVE/JSONSchema.pm
index 0603f7601fb6a40f138a82a59824a2a07ed57287..ac64342e4da83a94fb1d5d09526423fe2b09d9cf 100644
(file)
--- 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";
}
}