allow uppercase file extensions
This commit is contained in:
parent
6cae4cb0e2
commit
fdd1d12e9e
|
@ -38,7 +38,7 @@ function getDirContents($dir, &$results = array()) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//Check if the file is an image
|
//Check if the file is an image
|
||||||
$ext = pathinfo($path, PATHINFO_EXTENSION);
|
$ext = strtolower(pathinfo($path, PATHINFO_EXTENSION));
|
||||||
if (in_array($ext, $GLOBALS["allowedExtensions"])) {
|
if (in_array($ext, $GLOBALS["allowedExtensions"])) {
|
||||||
$results[] = $cleanPath;
|
$results[] = $cleanPath;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue