From fdd1d12e9e1ffe21fcd987041140a6b690ee5d5a Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Mon, 31 Jan 2022 12:32:33 +0100 Subject: [PATCH] allow uppercase file extensions --- www/galleri/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/galleri/index.php b/www/galleri/index.php index 592bda9..b8d39ca 100644 --- a/www/galleri/index.php +++ b/www/galleri/index.php @@ -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; }