Form header needs to default to post, multipart/form-data for empty data
This commit is contained in:
parent
b2ba305e0f
commit
192c2344aa
1 changed files with 3 additions and 3 deletions
|
|
@ -136,9 +136,9 @@ sub formHeader {
|
||||||
croak "Second parameter must be hash reference"
|
croak "Second parameter must be hash reference"
|
||||||
if ref $params ne "HASH";
|
if ref $params ne "HASH";
|
||||||
|
|
||||||
my $action = exists $params->{ action } ? $params->{ action } : $session->url->page();
|
my $action = $params->{ action } || $session->url->page();
|
||||||
my $method = exists $params->{ method } ? $params->{ method } : "post";
|
my $method = $params->{ method } || "post";
|
||||||
my $enctype = exists $params->{ enctype } ? $params->{ enctype } : "multipart/form-data";
|
my $enctype = $params->{ enctype } || "multipart/form-data";
|
||||||
|
|
||||||
# Fix a query string in the action URL
|
# Fix a query string in the action URL
|
||||||
my $hidden;
|
my $hidden;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue