X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=src%2FPVE%2FCLIFormatter.pm;h=119bc063cdc0785044e745767f9274137840bd43;hp=f6ad45921842c827504ddcd7d738d6d472a54f4d;hb=b9474c9682f16179360e9e7c00644a871cfe3ae5;hpb=6c7fee81f2800b3b6084722743d3da58eff34fd2 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,