Skip to content

Commit

Permalink
Fix support for forms that use form-data encoding https://www.virtual…
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Mar 4, 2018
1 parent fdd29b3 commit 3c7c71e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ my $qs;
&read_fully($STDIN, \$qs, $ENV{'CONTENT_LENGTH'});
print $TEMP $qs;
close($TEMP);
if ($ENV{'REQUEST_METHOD'} eq 'POST') {
if ($ENV{'REQUEST_METHOD'} eq 'POST' && $ENV{'CONTENT_TYPE'} !~ /boundary=/) {
$ENV{'CONTENT_TYPE'} = 'application/x-www-form-urlencoded';
}

Expand Down

0 comments on commit 3c7c71e

Please sign in to comment.