multipart upload: remove ignore-whitespace flag from regex

makes it rather harder to read and now unnecessary

Signed-off-by: John Hollowell <jhollowe@johnhollowell.com>
 [ T: resolve merge conflict and add commit message ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
John Hollowell 2022-11-18 01:39:11 +00:00 committed by Thomas Lamprecht
parent 3e3faddb4a
commit 0b6b3b372b

View File

@ -1222,9 +1222,7 @@ sub file_upload_multipart {
$extract_form_disposition->('checksum-algorithm');
$extract_form_disposition->('checksum');
if ($hdl->{rbuf} =~
s/^${delim_re}Content-Disposition:\ (.*?);\ name="(.*?)";\ filename="([^"]+)"${newline_re}//sxx
) {
if ($hdl->{rbuf} =~ s/^${delim_re}Content-Disposition: (.*?); name="(.*?)"; filename="([^"]+)"${newline_re}//s) {
assert_form_disposition($1);
die "wrong field name '$2' for file upload, expected 'filename'" if $2 ne "filename";
$rstate->{phase} = 2;