]> git.proxmox.com Git - pve-http-server.git/commit
multipart upload: fix upload of files starting with newlines
authorMatthias Heiserer <m.heiserer@proxmox.com>
Mon, 12 Dec 2022 15:07:54 +0000 (16:07 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 13 Dec 2022 12:16:19 +0000 (13:16 +0100)
commit26ea294acd1eb2721c230038839de0130f52db92
tree92f86ed3cbd155f2acf955ac8fe772344a7b8fb3
parent7a6657f0d121653b88f4cb6b52cbaad88026f28b
multipart upload: fix upload of files starting with newlines

Currently, if a file starts with a newline, it gets removed and the
upload succeeds (provided no hash is given).

Signed-off-by: Matthias Heiserer <m.heiserer@proxmox.com>
Reviewed-by: Daniel Tschlatscher <d.tschlatscher@proxmox.com>
Tested-by:  Daniel Tschlatscher <d.tschlatscher@proxmox.com>
src/PVE/APIServer/AnyEvent.pm