mirror of
https://github.com/nextcloud/server.git
synced 2026-05-22 10:06:37 -04:00
Merge pull request #59827 from nextcloud/backport/59597/stable31
This commit is contained in:
commit
911c79f076
1 changed files with 6 additions and 0 deletions
|
|
@ -648,6 +648,12 @@ class AmazonS3 extends Common {
|
|||
// sub folders
|
||||
if (is_array($result['CommonPrefixes'])) {
|
||||
foreach ($result['CommonPrefixes'] as $prefix) {
|
||||
if (preg_match('/\/{2,}$/', $prefix['Prefix'])) {
|
||||
$this->logger->warning('Detected a repeating delimiter in prefix \'' . $prefix['Prefix']
|
||||
. '\'. This is unsupported and its contents have been ignored.');
|
||||
continue;
|
||||
}
|
||||
|
||||
$dir = $this->getDirectoryMetaData($prefix['Prefix']);
|
||||
if ($dir) {
|
||||
yield $dir;
|
||||
|
|
|
|||
Loading…
Reference in a new issue