From c1fc643715daab0d9aff2358d4a793715edb8770 Mon Sep 17 00:00:00 2001 From: Udo Spallek Date: Thu, 18 Jan 2007 16:21:51 +0000 Subject: [PATCH] parse_template erweitert um die Mgl. einen Dateinamen ($form->{attachment_filename}) fuer das Attachmentfile anzugeben, der anders ist als $form->{tmpfile} --- SL/Form.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/Form.pm b/SL/Form.pm index a575ea6f1..e0791c469 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -868,10 +868,10 @@ sub parse_template { open(OUT, $self->{OUT}) or $self->error($self->cleanup . "$self->{OUT} : $!"); } else { - + $self->{attachment_filename} = $self->{tmpfile} if ($self->{attachment_filename} eq ''); # launch application print qq|Content-Type: | . $template->get_mime_type() . qq| -Content-Disposition: attachment; filename="$self->{tmpfile}" +Content-Disposition: attachment; filename="$self->{attachment_filename}" Content-Length: $numbytes |; -- 2.20.1