From b4c17606e57c34f7f8369e2ce0892fb2dbe33793 Mon Sep 17 00:00:00 2001 From: diosmosis Date: Mon, 4 Jan 2021 18:35:01 -0800 Subject: better fix + update expected screenshots (#17043) --- core/Http.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/Http.php b/core/Http.php index 793371aa9f..60ad0f595e 100644 --- a/core/Http.php +++ b/core/Http.php @@ -713,8 +713,8 @@ class Http @fclose($file); $fileSize = filesize($destinationPath); - if ((($contentLength > 0) && ($fileLength != $contentLength)) - || ($fileSize != $fileLength) + if ($contentLength > 0 + && $fileSize != $contentLength ) { throw new Exception('File size error: ' . $destinationPath . '; expected ' . $contentLength . ' bytes; received ' . $fileLength . ' bytes; saved ' . $fileSize . ' bytes to file'); } -- cgit v1.2.3