Skip to content
Extraits de code Groupes Projets
Valider 9fbac905 rédigé par mattab's avatar mattab
Parcourir les fichiers

Reverting change I wasnt supposed to commit

parent ce67167a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -566,7 +566,7 @@ class Piwik_Http ...@@ -566,7 +566,7 @@ class Piwik_Http
@fclose($file); @fclose($file);
$fileSize = filesize($destinationPath); $fileSize = filesize($destinationPath);
if((($contentLength > MINIMUM_CONTENT_LENGTH_TO_ENABLE_CHECK) && ($fileLength != $contentLength)) if((($contentLength > 0) && ($fileLength != $contentLength))
|| ($fileSize != $fileLength)) || ($fileSize != $fileLength))
{ {
throw new Exception('File size error: '.$destinationPath.'; expected '.$contentLength.' bytes; received '.$fileLength.' bytes; saved '.$fileSize.' bytes to file'); throw new Exception('File size error: '.$destinationPath.'; expected '.$contentLength.' bytes; received '.$fileLength.' bytes; saved '.$fileSize.' bytes to file');
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter