[pve-devel] applied: [PATCH http-server v2 1/2] upload: allow whitespaces in filenames

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Nov 7 16:42:42 CET 2022


Am 07/11/2022 um 16:07 schrieb Dominik Csapak:
> some fields (e.g. filename) can contain spaces, but our 'trim' function,
> would only return the value until the first whitespace character instead
> of removing leading/trailing white space. this lead to giving the wrong
> filename to the api call (e.g. 'foo' instead of 'foo (1).iso') which
> would reject it because of the 'wrong' extension
> 
> this patch fixes that by using trim from pve-common
> 
> fixes commit:
> 0fbcbc2 ("fix #3990: multipart upload: rework to fix uploading small files")
> 
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
>  src/PVE/APIServer/AnyEvent.pm | 11 +++--------
>  1 file changed, 3 insertions(+), 8 deletions(-)
> 
>

applied, thanks!





More information about the pve-devel mailing list