diff --git a/src/PVE/CLIFormatter.pm b/src/PVE/CLIFormatter.pm index f6ad459..119bc06 100644 --- a/src/PVE/CLIFormatter.pm +++ b/src/PVE/CLIFormatter.pm @@ -209,6 +209,8 @@ sub print_text_table { $width = $len if $len > $width; } + $width = ($width =~ m/^(\d+)$/) ? int($1) : 0; # untaint int + $rowdata->{$prop} = { lines => $lines, width => $width,