Form header needs to default to post, multipart/form-data for empty data

This commit is contained in:
Graham Knop 2008-02-21 23:07:23 +00:00
parent b2ba305e0f
commit 192c2344aa

View file

@ -136,9 +136,9 @@ sub formHeader {
croak "Second parameter must be hash reference"
if ref $params ne "HASH";
my $action = exists $params->{ action } ? $params->{ action } : $session->url->page();
my $method = exists $params->{ method } ? $params->{ method } : "post";
my $enctype = exists $params->{ enctype } ? $params->{ enctype } : "multipart/form-data";
my $action = $params->{ action } || $session->url->page();
my $method = $params->{ method } || "post";
my $enctype = $params->{ enctype } || "multipart/form-data";
# Fix a query string in the action URL
my $hidden;