Re: [pve-devel] [PATCH v2 storage 1/2] fix #3894: cast 'size' and 'used' to integer

2022-02-17 Thread Fabian Ebner
Am 17.02.22 um 15:54 schrieb Mira Limbeck: > Perl's automatic conversion can lead to integers being converted to > strings, for example by matching it in a regex. > > To make sure we always return an integer in the API calls, add > explicit casts to integer. > > Signed-off-by: Mira Limbeck > ---

[pve-devel] [PATCH v2 storage 1/2] fix #3894: cast 'size' and 'used' to integer

2022-02-17 Thread Mira Limbeck
Perl's automatic conversion can lead to integers being converted to strings, for example by matching it in a regex. To make sure we always return an integer in the API calls, add explicit casts to integer. Signed-off-by: Mira Limbeck --- v2: new PVE/API2/Storage/Content.pm | 6 -- 1 file c