From 87dd70bbd7b5bb5ea0d446f8cdb2552f8fb57600 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Sat, 11 Mar 2023 14:25:33 +0100 Subject: bugfixes and minor version bump --- lib/JWebmail/Controller/Webmail.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/JWebmail/Controller') diff --git a/lib/JWebmail/Controller/Webmail.pm b/lib/JWebmail/Controller/Webmail.pm index fd1c499..8325050 100644 --- a/lib/JWebmail/Controller/Webmail.pm +++ b/lib/JWebmail/Controller/Webmail.pm @@ -221,7 +221,7 @@ sub raw { my $content = $self->users->raw($auth, '', $mid, $path); $self->res->headers->content_disposition(qq[attachment; filename="$content->{head}{filename}"]) - if $content->{head}{content_disposition}; + if lc $content->{head}{content_disposition} eq 'attachment'; my $ct = $self->to_mime_type($content->{head}); if ($ct eq 'text/plain') { $ct .= '; charset=UTF-8' } $self->res->headers->content_type($ct); -- cgit v1.2.3