Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2013-02-27 14:08:04 +0400
committermattab <matthieu.aubry@gmail.com>2013-02-27 14:08:04 +0400
commit9fbac905998793c0945b13998eae98e39d13d64c (patch)
tree3fca05735b0c0ec27f048e917166c3839f0ec0cc /core/Http.php
parentce67167a7c906098c1084db0134cfece561f9e82 (diff)
Reverting change I wasnt supposed to commit
Diffstat (limited to 'core/Http.php')
-rw-r--r--core/Http.php2
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');