We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b8ad34c + 8d4fa6f commit 55e4223Copy full SHA for 55e4223
1 file changed
apps/files_external/lib/Lib/Storage/AmazonS3.php
@@ -645,6 +645,12 @@ public function getDirectoryContent(string $directory): \Traversable {
645
// sub folders
646
if (is_array($result['CommonPrefixes'])) {
647
foreach ($result['CommonPrefixes'] as $prefix) {
648
+ if (preg_match('/\/{2,}$/', $prefix['Prefix'])) {
649
+ $this->logger->warning('Detected a repeating delimiter in prefix \'' . $prefix['Prefix']
650
+ . '\'. This is unsupported and its contents have been ignored.');
651
+ continue;
652
+ }
653
+
654
$dir = $this->getDirectoryMetaData($prefix['Prefix']);
655
if ($dir) {
656
yield $dir;
0 commit comments