diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-02-27 14:08:04 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-02-27 14:08:04 +0400 |
commit | 9fbac905998793c0945b13998eae98e39d13d64c (patch) | |
tree | 3fca05735b0c0ec27f048e917166c3839f0ec0cc /core/Http.php | |
parent | ce67167a7c906098c1084db0134cfece561f9e82 (diff) |
Reverting change I wasnt supposed to commit
Diffstat (limited to 'core/Http.php')
-rw-r--r-- | core/Http.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Http.php b/core/Http.php index 694799294d..33f5b308c8 100644 --- a/core/Http.php +++ b/core/Http.php @@ -566,7 +566,7 @@ class Piwik_Http @fclose($file); $fileSize = filesize($destinationPath); - if((($contentLength > MINIMUM_CONTENT_LENGTH_TO_ENABLE_CHECK) && ($fileLength != $contentLength)) + if((($contentLength > 0) && ($fileLength != $contentLength)) || ($fileSize != $fileLength)) { throw new Exception('File size error: '.$destinationPath.'; expected '.$contentLength.' bytes; received '.$fileLength.' bytes; saved '.$fileSize.' bytes to file'); |