diff options
Diffstat (limited to 'core/Piwik.php')
-rw-r--r-- | core/Piwik.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Piwik.php b/core/Piwik.php index 7c2cb4ff05..64bc6d6e1c 100644 --- a/core/Piwik.php +++ b/core/Piwik.php @@ -486,7 +486,8 @@ class Piwik // convert end-of-line characters and re-test text files $content = @file_get_contents($file); $content = str_replace("\r\n", "\n", $content); - if(@md5($content) !== $props[1]) + if((strlen($content) != $props[0]) + || (@md5($content) !== $props[1])) { $messages[] = Piwik_Translate('General_ExceptionFilesizeMismatch', array($file, $props[0], filesize($file))); } |