]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Form.pm
Locale-Update von all für Udos Commit 1672.
[mfinanz.git] / SL / Form.pm
index a575ea6f12fbc6658c90c9f06e296104a3e18e68..e0791c469f3017ced3e9e2804d683a28e7075ad8 100644 (file)
@@ -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
 
 |;