Skip to content

Commit daa6021

Browse files
Merge branch '2' into 3.0
2 parents 4f97a68 + c63c1c0 commit daa6021

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/File.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,6 +1484,11 @@ public static function getAllowedExtensions()
14841484
continue;
14851485
}
14861486

1487+
// don't add the same extension multiple times
1488+
if (in_array($key, $allowedExtensions)) {
1489+
continue;
1490+
}
1491+
14871492
$allowedExtensions[] = $key;
14881493
}
14891494
return $allowedExtensions;

0 commit comments

Comments
 (0)