projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Security update for Core, with self-updated composer
[yaffs-website]
/
web
/
core
/
modules
/
file
/
src
/
Entity
/
File.php
diff --git
a/web/core/modules/file/src/Entity/File.php
b/web/core/modules/file/src/Entity/File.php
index a68b9bae9bcf5ef87098a9a592aae15ddea7302c..a9ade9e7d6ee33cbfcc156756c426b797f9e1bc3 100644
(file)
--- a/
web/core/modules/file/src/Entity/File.php
+++ b/
web/core/modules/file/src/Entity/File.php
@@
-190,7
+190,10
@@
class File extends ContentEntityBase implements FileInterface {
// The file itself might not exist or be available right now.
$uri = $this->getFileUri();
- if ($size = @filesize($uri)) {
+ $size = @filesize($uri);
+
+ // Set size unless there was an error.
+ if ($size !== FALSE) {
$this->setSize($size);
}
}