mirror of
https://github.com/elisspace/autopsy.git
synced 2026-10-01 23:09:56 +00:00
Merge pull request #1945 from karlmortensen/uppercaseUNC
uppercase the drive name to check for UNC mapping
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user