summaryrefslogtreecommitdiff
path: root/lib/JWebmail/Plugin/RenderMail.pm
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/Plugin/RenderMail.pm
parentfcf5549584b69e62b6c2f0eb919f6799c7904211 (diff)
bugfixes and minor version bump
Diffstat (limited to 'lib/JWebmail/Plugin/RenderMail.pm')
-rw-r--r--lib/JWebmail/Plugin/RenderMail.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/JWebmail/Plugin/RenderMail.pm b/lib/JWebmail/Plugin/RenderMail.pm
index 4417fae..22edbbd 100644
--- a/lib/JWebmail/Plugin/RenderMail.pm
+++ b/lib/JWebmail/Plugin/RenderMail.pm
@@ -69,8 +69,8 @@ sub render_multipart {
}
elsif (lc $_->{head}{content_disposition} eq 'attachment') {
$R .= '<p>';
- $R .= $c->link_to($c->url_for(raw => id => $c->stash('id'))->query(path => join('.', @$path, $i))->to_abs, (download => $_->{head}{filename}) => sub {
- 'Attachment ' . xml_escape($_->{head}{filename}) . ' of type ' . to_mime_type($c, $_->{head});
+ $R .= $c->link_to($c->url_for(raw => id => $c->stash('id'))->query(path => join('.', @$path, $i)), (download => $_->{head}{filename}) => sub {
+ 'Attachment ' . xml_escape($_->{head}{filename}) . ' of type ' . to_mime_type($_->{head});
});
$R .= "</p>\n";
}