mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 01:07:42 +00:00
Merge pull request #1945 from karlmortensen/uppercaseUNC
uppercase the drive name to check for UNC mapping
This commit is contained in:
commit
ee33e464c5
@ -84,7 +84,7 @@ public class UNCPathUtilities {
|
||||
String uncPath = null;
|
||||
try {
|
||||
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) {
|
||||
uncPath = uncMapping + inputPath.substring(REPLACEMENT_SIZE, inputPath.length());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user