Added check to PNG extensions. Ticket #51

This commit is contained in:
Arturo Gonzalez 2017-03-06 15:32:04 +01:00
parent c25595f64b
commit 5a612b3ab6
1 changed files with 1 additions and 1 deletions

View File

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