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; } }