summaryrefslogtreecommitdiff
path: root/lib/JWebmail/Controller
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis@fehcom.de>2023-03-11 14:25:33 +0100
committerJannis M. Hoffmann <jannis@fehcom.de>2023-03-11 14:25:33 +0100
commit87dd70bbd7b5bb5ea0d446f8cdb2552f8fb57600 (patch)
treeaaa0bf2fc4180ce172a0797ca0db5713eb3e89e0 /lib/JWebmail/Controller
parentfcf5549584b69e62b6c2f0eb919f6799c7904211 (diff)
bugfixes and minor version bump
Diffstat (limited to 'lib/JWebmail/Controller')
-rw-r--r--lib/JWebmail/Controller/Webmail.pm2
1 files changed, 1 insertions, 1 deletions
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);