Go to file
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
debian bump version to 4.1-4 2022-09-29 17:05:34 +02:00
src upload: re-allow white space in filenames 2022-11-07 16:40:15 +01:00
.gitignore fixup no newline at end of .gitignore 2018-05-25 16:42:05 +02:00
Makefile buildsys: change upload dist to bullseye 2021-10-04 10:21:12 +02:00