mirror of
https://github.com/elisspace/autopsy.git
synced 2026-10-01 23:09:56 +00:00
Removed invalid characters from tag path name
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*
|
||||
*
|
||||
* Autopsy Forensic Browser
|
||||
*
|
||||
@@ -719,8 +719,7 @@ class ReportHTML implements TableReportModule {
|
||||
*/
|
||||
public String saveContent(AbstractFile file, String dirName) {
|
||||
// clean up the dir name passed in
|
||||
String dirName2 = dirName.replace("/", "_");
|
||||
dirName2 = dirName2.replace("\\", "_");
|
||||
String dirName2 = org.sleuthkit.autopsy.coreutils.FileUtil.escapeFileName(dirName);
|
||||
|
||||
// Make a folder for the local file with the same tagName as the tag.
|
||||
StringBuilder localFilePath = new StringBuilder(); // full path
|
||||
@@ -840,13 +839,13 @@ class ReportHTML implements TableReportModule {
|
||||
StringBuilder index = new StringBuilder();
|
||||
final String reportTitle = reportBranding.getReportTitle();
|
||||
String iconPath = reportBranding.getAgencyLogoPath();
|
||||
if (iconPath == null){
|
||||
if (iconPath == null) {
|
||||
// use default Autopsy icon if custom icon is not set
|
||||
iconPath = "favicon.ico";
|
||||
}
|
||||
index.append("<head>\n<title>").append(reportTitle).append(" ").append(
|
||||
NbBundle.getMessage(this.getClass(), "ReportHTML.writeIndex.title", currentCase.getName())).append(
|
||||
"</title>\n"); //NON-NLS
|
||||
"</title>\n"); //NON-NLS
|
||||
index.append("<link rel=\"icon\" type=\"image/ico\" href=\"")
|
||||
.append(iconPath).append("\" />\n"); //NON-NLS
|
||||
index.append("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n"); //NON-NLS
|
||||
@@ -1045,10 +1044,10 @@ class ReportHTML implements TableReportModule {
|
||||
.append("</td><td>").append(caseName).append("</td></tr>\n"); //NON-NLS NON-NLS
|
||||
summary.append("<tr><td>").append(NbBundle.getMessage(this.getClass(), "ReportHTML.writeSum.caseNum")) //NON-NLS
|
||||
.append("</td><td>").append(!caseNumber.isEmpty() ? caseNumber : NbBundle //NON-NLS
|
||||
.getMessage(this.getClass(), "ReportHTML.writeSum.noCaseNum")).append("</td></tr>\n"); //NON-NLS
|
||||
.getMessage(this.getClass(), "ReportHTML.writeSum.noCaseNum")).append("</td></tr>\n"); //NON-NLS
|
||||
summary.append("<tr><td>").append(NbBundle.getMessage(this.getClass(), "ReportHTML.writeSum.examiner")).append("</td><td>") //NON-NLS
|
||||
.append(!examiner.isEmpty() ? examiner : NbBundle
|
||||
.getMessage(this.getClass(), "ReportHTML.writeSum.noExaminer"))
|
||||
.getMessage(this.getClass(), "ReportHTML.writeSum.noExaminer"))
|
||||
.append("</td></tr>\n"); //NON-NLS
|
||||
summary.append("<tr><td>").append(NbBundle.getMessage(this.getClass(), "ReportHTML.writeSum.numImages")) //NON-NLS
|
||||
.append("</td><td>").append(imagecount).append("</td></tr>\n"); //NON-NLS
|
||||
|
||||
Reference in New Issue
Block a user