Re: [pve-devel] [PATCH v7 common 1/1] tools: add download_file_from_url

2021-06-15 Thread Lorenz Stechauner
adds a common function to download arbitrary files from urls. security notice: this function does not perform any permission checking. the calling function and/or api endpoint has to make sure, that only authorized users may use this function. caution: This function is able to download files f

[pve-devel] [PATCH v7 common 1/1] tools: add download_file_from_url

2021-06-14 Thread Lorenz Stechauner
code is based on manager:PVE/API2/Nodes.pm:aplinfo Signed-off-by: Lorenz Stechauner --- src/PVE/Tools.pm | 124 +++ 1 file changed, 124 insertions(+) diff --git a/src/PVE/Tools.pm b/src/PVE/Tools.pm index 16ae3d2..7b82e00 100644 --- a/src/PVE/Tools.pm