From 5a612b3ab698293ca78ceedc7344d4c09c723548 Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Mon, 6 Mar 2017 15:32:04 +0100 Subject: [PATCH] Added check to PNG extensions. Ticket #51 --- pandora_console/include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/functions.php b/pandora_console/include/functions.php index b31cf38e9e..80033cfde0 100644 --- a/pandora_console/include/functions.php +++ b/pandora_console/include/functions.php @@ -173,7 +173,7 @@ function list_files ($directory, $stringSearch, $searchHandler, $return = false) } if ($searchHandler == 1) { while (false !== ($fileName = @readdir ($directoryHandler))) { - if (@substr_count ($fileName, $stringSearch) > 0) { + if ((@substr_count ($fileName, $stringSearch) > 0) || (@substr_count ($fileName, strtoupper($stringSearch)) > 0)) { $result[$fileName] = $fileName; } }