mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-19 07:44:23 +01:00
fixed display bug when only one CPE exists for a given CVE
Former-commit-id: 3b791d0a0fbe2587390e048cffc4453567ddf74a
This commit is contained in:
@@ -668,6 +668,12 @@ arising out of or in connection with the use of this tool, the analysis performe
|
|||||||
</ul>
|
</ul>
|
||||||
#end
|
#end
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
#if ($vuln.getVulnerableSoftware().size()<2)
|
||||||
|
<p>Vulnerable Software & Versions:<ul>
|
||||||
|
<li class="vs$vsctr"><a target="_blank" href="https://web.nvd.nist.gov/view/vuln/search-results?adv_search=true&cves=on&cpe_version=$enc.url($vuln.matchedCPE)">$enc.html($vuln.matchedCPE)</a> #if($vuln.hasMatchedAllPreviousCPE()) and all previous versions#end</li>
|
||||||
|
</ul></p>
|
||||||
|
#else
|
||||||
<p>Vulnerable Software & Versions: (<a href="#" onclick="toggleDisplay(this,'.vs$vsctr'); return false;">show all</a>)<ul>
|
<p>Vulnerable Software & Versions: (<a href="#" onclick="toggleDisplay(this,'.vs$vsctr'); return false;">show all</a>)<ul>
|
||||||
<li class="vs$vsctr"><a target="_blank" href="https://web.nvd.nist.gov/view/vuln/search-results?adv_search=true&cves=on&cpe_version=$enc.url($vuln.matchedCPE)">$enc.html($vuln.matchedCPE)</a> #if($vuln.hasMatchedAllPreviousCPE()) and all previous versions#end</li>
|
<li class="vs$vsctr"><a target="_blank" href="https://web.nvd.nist.gov/view/vuln/search-results?adv_search=true&cves=on&cpe_version=$enc.url($vuln.matchedCPE)">$enc.html($vuln.matchedCPE)</a> #if($vuln.hasMatchedAllPreviousCPE()) and all previous versions#end</li>
|
||||||
<li class="vs$vsctr">...</li>
|
<li class="vs$vsctr">...</li>
|
||||||
@@ -676,6 +682,7 @@ arising out of or in connection with the use of this tool, the analysis performe
|
|||||||
#end
|
#end
|
||||||
</ul></p>
|
</ul></p>
|
||||||
#end
|
#end
|
||||||
|
#end
|
||||||
</div>
|
</div>
|
||||||
#end
|
#end
|
||||||
</div>
|
</div>
|
||||||
@@ -796,6 +803,11 @@ arising out of or in connection with the use of this tool, the analysis performe
|
|||||||
</ul>
|
</ul>
|
||||||
#end
|
#end
|
||||||
</p>
|
</p>
|
||||||
|
#if ($vuln.getVulnerableSoftware().size()<2)
|
||||||
|
<p>Vulnerable Software & Versions:<ul>
|
||||||
|
<li class="vs$vsctr"><a target="_blank" href="https://web.nvd.nist.gov/view/vuln/search-results?adv_search=true&cves=on&cpe_version=$enc.url($vuln.matchedCPE)">$enc.html($vuln.matchedCPE)</a> #if($vuln.hasMatchedAllPreviousCPE()) and all previous versions#end</li>
|
||||||
|
</ul></p>
|
||||||
|
#else
|
||||||
<p>Vulnerable Software & Versions: (<a href="#" onclick="toggleDisplay(this,'.vs$vsctr'); return false;">show all</a>)<ul>
|
<p>Vulnerable Software & Versions: (<a href="#" onclick="toggleDisplay(this,'.vs$vsctr'); return false;">show all</a>)<ul>
|
||||||
<li class="vs$vsctr"><a target="_blank" href="https://web.nvd.nist.gov/view/vuln/search-results?adv_search=true&cves=on&cpe_version=$enc.url($vuln.matchedCPE)">$enc.html($vuln.matchedCPE)</a> #if($vuln.hasMatchedAllPreviousCPE()) and all previous versions#end</li>
|
<li class="vs$vsctr"><a target="_blank" href="https://web.nvd.nist.gov/view/vuln/search-results?adv_search=true&cves=on&cpe_version=$enc.url($vuln.matchedCPE)">$enc.html($vuln.matchedCPE)</a> #if($vuln.hasMatchedAllPreviousCPE()) and all previous versions#end</li>
|
||||||
<li class="vs$vsctr">...</li>
|
<li class="vs$vsctr">...</li>
|
||||||
@@ -804,6 +816,7 @@ arising out of or in connection with the use of this tool, the analysis performe
|
|||||||
#end
|
#end
|
||||||
</ul></p>
|
</ul></p>
|
||||||
#end
|
#end
|
||||||
|
#end
|
||||||
</div>
|
</div>
|
||||||
#end
|
#end
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user