mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Update JLNK.java
Check if string ends with \ and add it if it does not. Paths were not being returned properly
This commit is contained in:
parent
3f3f873525
commit
8e63a9b742
@ -292,7 +292,16 @@ public class JLNK {
|
||||
} else if (linkTargetIdList != null && !linkTargetIdList.isEmpty()) {
|
||||
String ret = "";
|
||||
for (String s : linkTargetIdList) {
|
||||
ret += s;
|
||||
if (s.endsWith("\\")) {
|
||||
ret += s;
|
||||
} else {
|
||||
if (ret.endsWith("\\")) {
|
||||
ret +=s;
|
||||
} else {
|
||||
ret += "\\";
|
||||
ret += s;
|
||||
}
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user