Re: [pve-devel] [PATCH http-server] upload: allow whitespaces in filenames

2022-11-04 Thread Thomas Lamprecht
Am 04/11/2022 um 11:56 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 (

[pve-devel] [PATCH http-server] upload: allow whitespaces in filenames

2022-11-04 Thread 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