Skip to content

Commit

Permalink
fix backslash issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanjbutler committed Dec 11, 2018
1 parent 465d3cd commit 2608b84
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions providers/jira/JIRAProvider.groovy
Expand Up @@ -17,8 +17,8 @@ class JIRAProvider extends JIRAConstants implements IProvider {
public String getId() {
return PROVIDER_NAME;
}

@Override

@Override
List<String> getDescription() {
return PROVIDER_DESCRIPTION;
}
Expand Down Expand Up @@ -168,8 +168,10 @@ class JIRAProvider extends JIRAConstants implements IProvider {
}

//For now just remove any double quotes. Causes problems
//Replace all backslashes with double backslashes to handle windows paths in Location
private String escape(String theString) {
theString.replaceAll("\"", "'")
theString.replaceAll("\\\\", "\\\\\\\\")
}

private String computeSummary(IAppScanIssue appscanIssue, Map<String, Object> config) {
Expand All @@ -184,4 +186,4 @@ class JIRAProvider extends JIRAConstants implements IProvider {
}
computedSummary
}
}
}

0 comments on commit 2608b84

Please sign in to comment.