console hex file scanner should not accept files with spaces in names fix #3836

This commit is contained in:
rusefillc 2022-01-24 19:45:37 -05:00
parent 73d72dcef1
commit 16ac447e4d
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ public class IniFileModel {
return null;
log.info("Searching for " + prefix + "*" + suffix + " in " + fileDirectory);
for (String file : dir.list()) {
if (file.contains(' '))
if (file.contains(" "))
continue; // spaces not acceptable
if (file.startsWith(prefix) && file.endsWith(suffix))
return fileDirectory + File.separator + file;