diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-06-14 17:37:29 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-06-14 17:37:29 +0000 |
| commit | 0990783e9e22c691f9f7131260170265bcbe0cc4 (patch) | |
| tree | c2b9b8fefbb072e5c645b4a93378f21e5c9c2a79 | |
| parent | ca79c5b5a03381c939985b5920e0ea036e32a3d8 (diff) | |
Bugfix: call msg->set_safe() before checking msg->is_save
git-svn-id: https://svn.roundcube.net/trunk@1535 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/steps/mail/show.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/roundcubemail/program/steps/mail/show.inc b/roundcubemail/program/steps/mail/show.inc index 8b6ce5809..3cdf2c9a5 100644 --- a/roundcubemail/program/steps/mail/show.inc +++ b/roundcubemail/program/steps/mail/show.inc @@ -42,9 +42,6 @@ if ($_GET['_uid']) { $mbox_name = $IMAP->get_mailbox_name(); - // calculate Etag for this request - $etag = md5($MESSAGE->uid.$mbox_name.session_id().intval($MESSAGE->headers->mdn_sent).intval($MESSAGE->is_safe).intval($PRINT_MODE)); - // check known senders to display images if (!$MESSAGE->is_safe && !empty($MESSAGE->sender['mailto']) @@ -57,6 +54,9 @@ if ($_GET['_uid']) { } } + // calculate Etag for this request + $etag = md5($MESSAGE->uid.$mbox_name.session_id().intval($MESSAGE->headers->mdn_sent).intval($MESSAGE->is_safe).intval($PRINT_MODE)); + // allow caching, unless remote images are present if ((bool)$MESSAGE->is_safe) send_nocacheing_headers(); |
