mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 10:17:41 +00:00
Replaced double slashes in saved paths with single ones
This commit is contained in:
parent
461f0a3a98
commit
201f5745e5
@ -244,11 +244,14 @@ class ReportCaseUco implements GeneralReportModule {
|
||||
|
||||
catalog.writeFieldName("propertyBundle");
|
||||
catalog.writeStartArray();
|
||||
|
||||
catalog.writeStartObject();
|
||||
|
||||
// replace double slashes with single ones
|
||||
caseDirPath = caseDirPath.replaceAll("\\\\", "/");
|
||||
|
||||
catalog.writeStringField("@type", "File");
|
||||
if (dbType == TskData.DbType.SQLITE) {
|
||||
catalog.writeStringField("filePath", caseDirPath + java.io.File.separator + dbFileName);
|
||||
catalog.writeStringField("filePath", caseDirPath + "/" + dbFileName);
|
||||
catalog.writeBooleanField("isDirectory", false);
|
||||
} else {
|
||||
catalog.writeStringField("filePath", caseDirPath);
|
||||
@ -301,6 +304,9 @@ class ReportCaseUco implements GeneralReportModule {
|
||||
}
|
||||
}
|
||||
|
||||
// replace double back slashes with single ones
|
||||
imageName = imageName.replaceAll("\\\\", "/");
|
||||
|
||||
return saveDataSourceInCaseUcoFormat(jsonGenerator, imageName, imageSize, selectedDataSourceId, caseTraceId);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user