Skip to content

Commit

Permalink
Merge pull request #44509 from nextcloud/backport/39367/stable26
Browse files Browse the repository at this point in the history
[stable26] handle more exceptions in AmazonS3::fopen
  • Loading branch information
icewind1991 committed Apr 3, 2024
2 parents 27dcfb9 + f0e5ed3 commit e1ec007
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/private/Files/Stream/SeekableHttpStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ public function stream_tell() {
public function stream_stat() {
if ($this->getCurrent()) {
$stat = fstat($this->getCurrent());
$stat['size'] = $this->totalSize;
if ($stat) {
$stat['size'] = $this->totalSize;
}
return $stat;
} else {
return false;
Expand Down

0 comments on commit e1ec007

Please sign in to comment.