mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Merge pull request #7745 from markmckinnon/fix-issues-with-lnk-files
Fix issues with lnk files
This commit is contained in:
commit
270958ea09
@ -292,7 +292,16 @@ public class JLNK {
|
|||||||
} else if (linkTargetIdList != null && !linkTargetIdList.isEmpty()) {
|
} else if (linkTargetIdList != null && !linkTargetIdList.isEmpty()) {
|
||||||
String ret = "";
|
String ret = "";
|
||||||
for (String s : linkTargetIdList) {
|
for (String s : linkTargetIdList) {
|
||||||
ret += s;
|
if (s.endsWith("\\")) {
|
||||||
|
ret += s;
|
||||||
|
} else {
|
||||||
|
if (ret.endsWith("\\")) {
|
||||||
|
ret +=s;
|
||||||
|
} else {
|
||||||
|
ret += "\\";
|
||||||
|
ret += s;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -167,6 +167,9 @@ class RecentDocumentsByLnk extends Extract {
|
|||||||
String fileName = FilenameUtils.getName(normalizePathName);
|
String fileName = FilenameUtils.getName(normalizePathName);
|
||||||
String filePath = FilenameUtils.getPath(normalizePathName);
|
String filePath = FilenameUtils.getPath(normalizePathName);
|
||||||
List<AbstractFile> sourceFiles;
|
List<AbstractFile> sourceFiles;
|
||||||
|
if (filePath == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
sourceFiles = currentCase.getSleuthkitCase().getFileManager().findFilesExactNameExactPath(dataSource, fileName, filePath);
|
sourceFiles = currentCase.getSleuthkitCase().getFileManager().findFilesExactNameExactPath(dataSource, fileName, filePath);
|
||||||
for (AbstractFile sourceFile : sourceFiles) {
|
for (AbstractFile sourceFile : sourceFiles) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user