Skip to content

Commit

Permalink
Handled the special character issue (#178) (#179)
Browse files Browse the repository at this point in the history
* Handled the special character issue

ASA-6769
  • Loading branch information
vishalhcl-5960 committed Oct 11, 2023
1 parent a0647f1 commit 4f209dc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

package com.hcl.appscan.jenkins.plugin.actions;

import com.hcl.appscan.sdk.utils.FileUtil;
import hudson.model.Action;
import hudson.model.Run;

Expand Down Expand Up @@ -150,7 +151,7 @@ public File getReport() {
}

private String getReportName() {
String name = (getScanType() + getName()).replaceAll(" ", ""); //$NON-NLS-1$ //$NON-NLS-2$
String name = (getScanType() + FileUtil.getValidFilename(getName())).replaceAll(" ", ""); //$NON-NLS-1$ //$NON-NLS-2$
return name + REPORT_SUFFIX + "." + m_provider.getResultsFormat().toLowerCase(); //$NON-NLS-1$
}

Expand Down

0 comments on commit 4f209dc

Please sign in to comment.