From cec626a12f58f9726af5e8d23805780c788a6481 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 7 Nov 2018 16:54:57 +0100 Subject: [PATCH] Use 'thumb' prefix, instead of '.thumb' suffix, for consistency --- program/include/rcmail.php | 2 +- program/steps/mail/get.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/program/include/rcmail.php b/program/include/rcmail.php index a263dae19..5c37fdc89 100644 --- a/program/include/rcmail.php +++ b/program/include/rcmail.php @@ -2238,7 +2238,7 @@ class rcmail extends rcube $thumbnail_size = 80; $mimetype = $file['mimetype']; $file_ident = $file['id'] . ':' . $file['mimetype'] . ':' . $file['size']; - $thumb_name = md5($file_ident . ':' . $this->user->ID . ':' . $thumbnail_size) . '.thumb'; + $thumb_name = 'thumb' . md5($file_ident . ':' . $this->user->ID . ':' . $thumbnail_size); $cache_file = rcube_utils::temp_filename($thumb_name, false, false); // render thumbnail image if not done yet diff --git a/program/steps/mail/get.inc b/program/steps/mail/get.inc index c0c75dfd5..f42addfe1 100644 --- a/program/steps/mail/get.inc +++ b/program/steps/mail/get.inc @@ -77,7 +77,7 @@ if (!empty($_GET['_frame'])) { if (!empty($_GET['_thumb']) && $attachment->is_valid()) { $thumbnail_size = $RCMAIL->config->get('image_thumbnail_size', 240); $file_ident = $attachment->ident; - $thumb_name = md5($file_ident . ':' . $RCMAIL->user->ID . ':' . $thumbnail_size) . '.thumb'; + $thumb_name = 'thumb' . md5($file_ident . ':' . $RCMAIL->user->ID . ':' . $thumbnail_size); $cache_file = rcube_utils::temp_filename($thumb_name, false, false); // render thumbnail image if not done yet