mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 18:17:43 +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.writeFieldName("propertyBundle");
|
||||||
catalog.writeStartArray();
|
catalog.writeStartArray();
|
||||||
|
|
||||||
catalog.writeStartObject();
|
catalog.writeStartObject();
|
||||||
|
|
||||||
|
// replace double slashes with single ones
|
||||||
|
caseDirPath = caseDirPath.replaceAll("\\\\", "/");
|
||||||
|
|
||||||
catalog.writeStringField("@type", "File");
|
catalog.writeStringField("@type", "File");
|
||||||
if (dbType == TskData.DbType.SQLITE) {
|
if (dbType == TskData.DbType.SQLITE) {
|
||||||
catalog.writeStringField("filePath", caseDirPath + java.io.File.separator + dbFileName);
|
catalog.writeStringField("filePath", caseDirPath + "/" + dbFileName);
|
||||||
catalog.writeBooleanField("isDirectory", false);
|
catalog.writeBooleanField("isDirectory", false);
|
||||||
} else {
|
} else {
|
||||||
catalog.writeStringField("filePath", caseDirPath);
|
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);
|
return saveDataSourceInCaseUcoFormat(jsonGenerator, imageName, imageSize, selectedDataSourceId, caseTraceId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user