a359bff949f3a1000f0005491354fc36a9ae19ce
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>
Description
My contributions to proxmox-git/pve-http-server: 2 commits
96 KiB
0 Stars
1 Watchers
0 Forks
Languages
Perl
100%