diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2021-01-05 05:35:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-05 05:35:01 +0300 |
commit | b4c17606e57c34f7f8369e2ce0892fb2dbe33793 (patch) | |
tree | f9b3e43adfd873c934de2625eda9d1a4affeb6ff /core | |
parent | 65faef9b341e61466e53678dcc1df7a949c7428c (diff) |
better fix + update expected screenshots (#17043)
Diffstat (limited to 'core')
-rw-r--r-- | core/Http.php | 4 |
1 files changed, 2 insertions, 2 deletions
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'); } |