allow uppercase file extensions

This commit is contained in:
Peder Bergebakken Sundt 2022-01-31 12:32:33 +01:00
parent 6cae4cb0e2
commit fdd1d12e9e
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ function getDirContents($dir, &$results = array()) {
}
//Check if the file is an image
$ext = pathinfo($path, PATHINFO_EXTENSION);
$ext = strtolower(pathinfo($path, PATHINFO_EXTENSION));
if (in_array($ext, $GLOBALS["allowedExtensions"])) {
$results[] = $cleanPath;
}