X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/66c9114861885f75a29030682be83976cd93838b..a50a0e0b31e566d6902881c15c899800d04ec04e:/SL/Form.pm diff --git a/SL/Form.pm b/SL/Form.pm index 9a7c9e175..4febdc72a 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -57,6 +57,7 @@ use SL::Template; use SL::User; use Template; use List::Util qw(first max min sum); +use List::MoreUtils qw(any); my $standard_dbh; @@ -255,7 +256,7 @@ sub _recode_recursively { $main::lxdebug->enter_sub(); my ($iconv, $param) = @_; - if (ref $param eq 'HASH') { + if (any { ref $param eq $_ } qw(Form HASH)) { foreach my $key (keys %{ $param }) { if (!ref $param->{$key}) { $param->{$key} = $iconv->convert($param->{$key}); @@ -606,9 +607,10 @@ sub create_http_response { my $session_cookie_value = $main::auth->get_session_id(); $session_cookie_value ||= 'NO_SESSION'; - $session_cookie = $cgi->cookie('-name' => $main::auth->get_session_cookie_name(), - '-value' => $session_cookie_value, - '-path' => $base_path); + $session_cookie = $cgi->cookie('-name' => $main::auth->get_session_cookie_name(), + '-value' => $session_cookie_value, + '-path' => $base_path, + '-secure' => $ENV{HTTPS}); } my %cgi_params = ('-type' => $params{content_type}); @@ -1354,6 +1356,7 @@ Content-Length: $numbytes while () { print OUT $_; + } close(OUT); @@ -1393,6 +1396,7 @@ sub get_formname_translation { storno_packing_list => $main::locale->text('Storno Packing List'), sales_delivery_order => $main::locale->text('Delivery Order'), purchase_delivery_order => $main::locale->text('Delivery Order'), + dunning => $main::locale->text('Dunning'), ); $main::lxdebug->leave_sub();