From 97619d8ba1cc825476f65c831488ce7f05daa545 Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Sun, 1 Dec 2013 07:46:29 -0500 Subject: [PATCH] added ability to copy suppression data from HTML report Former-commit-id: 5429dc4a2738b5ea021cc33cf3d1efc68615f99f --- .../main/resources/templates/HtmlReport.vsl | 132 +++++++++++++++++- 1 file changed, 129 insertions(+), 3 deletions(-) diff --git a/dependency-check-core/src/main/resources/templates/HtmlReport.vsl b/dependency-check-core/src/main/resources/templates/HtmlReport.vsl index bcc7dd9cf..76489e303 100644 --- a/dependency-check-core/src/main/resources/templates/HtmlReport.vsl +++ b/dependency-check-core/src/main/resources/templates/HtmlReport.vsl @@ -51,14 +51,132 @@ Copyright (c) 2012 Jeremy Long. All Rights Reserved. }); }); - - + +

Dependency Report

]]# @@ -424,6 +548,8 @@ Copyright (c) 2012 Jeremy Long. All Rights Reserved. #else
  • $esc.html($id.type): $esc.html($id.value) #end + ##yes, we are HTML Encoding into JavaScript... the escape utils don't have a JS Encode and I haven't written one yet +    #if( $id.description )
    $esc.html($id.description) #end @@ -437,7 +563,7 @@ Copyright (c) 2012 Jeremy Long. All Rights Reserved.
    #foreach($vuln in $dependency.getVulnerabilities()) -

    $esc.html($vuln.name)

    +

    $esc.html($vuln.name)  

    Severity: #if ($vuln.cvssScore<4.0) Low