diff --git a/dependency-check-core/src/main/resources/templates/HtmlReport.vsl b/dependency-check-core/src/main/resources/templates/HtmlReport.vsl index b4835a644..e1b217a47 100644 --- a/dependency-check-core/src/main/resources/templates/HtmlReport.vsl +++ b/dependency-check-core/src/main/resources/templates/HtmlReport.vsl @@ -593,8 +593,10 @@ arising out of or in connection with the use of this tool, the analysis performe #end #if ($cpeIdConf == "") #set($cpeIdConf=$id.confidence) + #set($cpeSort=$id.confidence.ordinal()) #elseif ($cpeIdConf.compareTo($id.confidence)>0) #set($cpeIdConf=$id.confidence) + #set($cpeSort=$id.confidence.ordinal()) #end #set($cpeIdCount=$cpeIdCount+1) #end @@ -625,7 +627,7 @@ arising out of or in connection with the use of this tool, the analysis performe #end $dependency.getVulnerabilities().size() - $cpeIdConf + $cpeIdConf $dependency.getEvidenceForDisplay().size() #end