mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Added check to PNG extensions. Ticket #51
This commit is contained in:
parent
c25595f64b
commit
5a612b3ab6
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user