From bd0551b22076b82a6d49e9f7a2b2e0c90a1b2326 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Fri, 05 Feb 2016 07:25:27 -0500 Subject: [PATCH] Secure also downloads of addressbook exports, managesieve script exports and Enigma keys exports --- program/steps/mail/attachments.inc | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/program/steps/mail/attachments.inc b/program/steps/mail/attachments.inc index c39b25c..fe2f845 100644 --- a/program/steps/mail/attachments.inc +++ b/program/steps/mail/attachments.inc @@ -203,7 +203,8 @@ 'aria-label' => $RCMAIL->gettext('delete') . ' ' . $attachment['name'], ), $button); - $content .= rcube::Q($attachment['name']); + $content .= sprintf('%s <span class="attachment-size">(%s)</span>', + rcube::Q($attachment['name']), $RCMAIL->show_bytes($attachment['size'])); $RCMAIL->output->command('add2attachment_list', "rcmfile$id", array( 'html' => $content, -- Gitblit v1.9.1