Skip to content

Commit

Permalink
Merge pull request #673 from PortableSteve/fix/htaccess-duplicate-ext…
Browse files Browse the repository at this point in the history
…ensions

fix: Don't add the same extension multiple times
  • Loading branch information
GuySartorelli authored Jan 20, 2025
2 parents 627d272 + af3ec19 commit fb61838
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -1479,6 +1479,11 @@ public static function getAllowedExtensions()
continue;
}

// don't add the same extension multiple times
if (in_array($key, $allowedExtensions)) {
continue;
}

$allowedExtensions[] = $key;
}
return $allowedExtensions;
Expand Down

0 comments on commit fb61838

Please sign in to comment.