pve-http-server/src
Dominik Csapak a66b77d850 upload: re-allow white space in filenames
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 passing the wrong filename to the API call (e.g. 'foo' instead of
'foo (1).iso'), which would then reject it because of the 'wrong'
extension.

Fix this by just using the battle proven trim from pve-common.

Fixes: 0fbcbc2 ("fix #3990: multipart upload: rework to fix uploading small files")
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2022-11-07 16:40:15 +01:00
..
examples buildsys: split packaging and source build-systems 2021-05-14 16:37:17 +02:00
PVE/APIServer upload: re-allow white space in filenames 2022-11-07 16:40:15 +01:00
Makefile buildsys: split packaging and source build-systems 2021-05-14 16:37:17 +02:00