mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-19 11:07:43 +00:00
relax string extraction supported formats to be everything other than archives
This commit is contained in:
parent
4027fa949b
commit
069c239d01
@ -183,20 +183,12 @@ class AbstractFileStringExtract implements AbstractFileExtract {
|
|||||||
if (detectedFormat == null) {
|
if (detectedFormat == null) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (detectedFormat.equals("application/octet-stream")) {
|
|
||||||
//any binary unstructured blobs (string extraction will be used)
|
//accept everything other than archives
|
||||||
return true;
|
if (AbstractFileExtract.ARCHIVE_MIME_TYPES.contains(detectedFormat)) {
|
||||||
}
|
|
||||||
else if (AbstractFileExtract.ARCHIVE_MIME_TYPES.contains(detectedFormat)) {
|
|
||||||
return false; //let unzipper take care of it
|
return false; //let unzipper take care of it
|
||||||
}
|
}
|
||||||
//skip images/video/audio
|
|
||||||
else if (detectedFormat.contains("image/")
|
|
||||||
|| detectedFormat.contains("audio/")
|
|
||||||
|| detectedFormat.contains("video/")
|
|
||||||
) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user