diff --git a/dependency-check-core/src/main/java/org/owasp/dependencycheck/dependency/Dependency.java b/dependency-check-core/src/main/java/org/owasp/dependencycheck/dependency/Dependency.java index 95f336c0a..83e114ed0 100644 --- a/dependency-check-core/src/main/java/org/owasp/dependencycheck/dependency/Dependency.java +++ b/dependency-check-core/src/main/java/org/owasp/dependencycheck/dependency/Dependency.java @@ -186,18 +186,6 @@ public class Dependency extends EvidenceCollection implements Serializable, Comp return this.fileName; } - /** - * Returns the file name of the dependency with the backslash escaped for - * use in JavaScript. This is a complete hack as I could not get the replace - * to work in the template itself. - * - * @return the file name of the dependency with the backslash escaped for - * use in JavaScript - */ - public String getFileNameForJavaScript() { - return this.fileName.replace("\\", "\\\\"); - } - /** * Sets the file name of the dependency. *