mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-09 06:39:33 +00:00
exif parser: restore supported file detection by extension
This commit is contained in:
parent
641f174613
commit
dd814ec94e
@ -94,6 +94,11 @@ public final class ExifParserFileIngestModule implements IngestModuleAbstractFil
|
||||
return IngestModuleAbstractFile.ProcessResult.OK;
|
||||
}
|
||||
|
||||
//skip unsupported
|
||||
if (! parsableFormat(content)) {
|
||||
return IngestModuleAbstractFile.ProcessResult.OK;
|
||||
}
|
||||
|
||||
return processFile(content);
|
||||
}
|
||||
|
||||
@ -176,7 +181,7 @@ public final class ExifParserFileIngestModule implements IngestModuleAbstractFil
|
||||
return IngestModuleAbstractFile.ProcessResult.ERROR;
|
||||
}
|
||||
|
||||
private boolean parsableFormat(FsContent f) {
|
||||
private boolean parsableFormat(AbstractFile f) {
|
||||
// Get the name, extension
|
||||
String name = f.getName();
|
||||
int dotIndex = name.lastIndexOf(".");
|
||||
|
Loading…
x
Reference in New Issue
Block a user