aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_download.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-05-30 20:05:45 +0200
committerMarc Alexander <admin@m-a-styles.de>2016-05-30 20:05:45 +0200
commit72248cab45cb658d53a489791d6ae55fe06f42d3 (patch)
treeef3677899d5118bdb7475344851b0c66731a66a4 /phpBB/includes/functions_download.php
parent0a512b2695342095ecb9745cf1c445c45f3326be (diff)
downloadforums-72248cab45cb658d53a489791d6ae55fe06f42d3.tar
forums-72248cab45cb658d53a489791d6ae55fe06f42d3.tar.gz
forums-72248cab45cb658d53a489791d6ae55fe06f42d3.tar.bz2
forums-72248cab45cb658d53a489791d6ae55fe06f42d3.tar.xz
forums-72248cab45cb658d53a489791d6ae55fe06f42d3.zip
[ticket/14291] Do not update filesize if displaying thumbnail
PHPBB3-14291
Diffstat (limited to 'phpBB/includes/functions_download.php')
-rw-r--r--phpBB/includes/functions_download.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_download.php b/phpBB/includes/functions_download.php
index 2c5cba2c0d..2c6f62227c 100644
--- a/phpBB/includes/functions_download.php
+++ b/phpBB/includes/functions_download.php
@@ -166,7 +166,7 @@ function send_file_to_browser($attachment, $upload_dir, $category)
}
// Make sure the database record for the filesize is correct
- if ($size > 0 && $size != $attachment['filesize'])
+ if ($size > 0 && $size != $attachment['filesize'] && strpos($attachment['physical_filename'], 'thumb_') === false)
{
// Update database record
$sql = 'UPDATE ' . ATTACHMENTS_TABLE . '