Skip to content

Commit d286e89

Browse files
committed
Fixed #1882: Prevent listing directory named 0 from returning unfiltered responses.
1 parent c6ff6d4 commit d286e89

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

AwsS3V3Adapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ public function fileSize(string $path): FileAttributes
375375
public function listContents(string $path, bool $deep): iterable
376376
{
377377
$prefix = trim($this->prefixer->prefixPath($path), '/');
378-
$prefix = empty($prefix) ? '' : $prefix . '/';
378+
$prefix = $prefix === '' ? '' : $prefix . '/';
379379
$options = ['Bucket' => $this->bucket, 'Prefix' => $prefix];
380380

381381
if ($deep === false) {

0 commit comments

Comments
 (0)