mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 01:07:42 +00:00
uppercase the drive name to check for UNC mapping
This commit is contained in:
parent
9856b58b80
commit
f0be8b10cf
@ -84,7 +84,7 @@ public class UNCPathUtilities {
|
|||||||
String uncPath = null;
|
String uncPath = null;
|
||||||
try {
|
try {
|
||||||
String currentDrive = Paths.get(inputPath).getRoot().toString().substring(STARTING_OFFSET, REPLACEMENT_SIZE);
|
String currentDrive = Paths.get(inputPath).getRoot().toString().substring(STARTING_OFFSET, REPLACEMENT_SIZE);
|
||||||
String uncMapping = drives.get(currentDrive);
|
String uncMapping = drives.get(currentDrive.toUpperCase());
|
||||||
if (uncMapping != null) {
|
if (uncMapping != null) {
|
||||||
uncPath = uncMapping + inputPath.substring(REPLACEMENT_SIZE, inputPath.length());
|
uncPath = uncMapping + inputPath.substring(REPLACEMENT_SIZE, inputPath.length());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user