dualfroz a359bff949 fix #6887: apiserver: accept quoted multipart boundary
RFC 2046 allows the boundary parameter of a multipart Content-Type to
be a quoted-string, and even requires it if the boundary contains
characters like a colon. RFC 7578 notes that quoting it is often
necessary for multipart/form-data.

parse_content_type() took everything after the equal sign verbatim, so
for 'boundary="foo"' the quotes became part of the boundary. The
delimiter lines of the body, correctly written as '--foo', never
matched and the upload failed.

Strip the quotes of a quoted boundary.

Signed-off-by: Michal Fox <me@dualfroz.com>
2026-09-25 07:15:08 +02:00
S
Description
My contributions to proxmox-git/pve-http-server: 2 commits
96 KiB
0 Stars 1 Watchers 0 Forks
Languages
Perl 100%