mirror of
https://git.proxmox.com/git/pve-http-server
synced 2025-07-02 05:57:59 +00:00
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:
parent
3e3faddb4a
commit
0b6b3b372b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user