Skip to content

Commit b71f42d

Browse files
authored
Merge pull request #393 from CVEProject/tat-39-40
#39 drop 'is' from <cve-id> is not found, ref and nvd urls opens in n…
2 parents 985393d + c4931e6 commit b71f42d

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/views/CVERecord.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<p v-if="this.$store.state.showHelpText" style="text-align: center;">Please use the search box above to find a CVE record by ID.</p>
2020
<div v-if="!this.$store.state.isSearching && !this.$store.state.showHelpText && !this.$store.state.serverError">
2121
<div v-if="this.$store.state.error" style="text-align: center !important">
22-
<h2 class="title mb-2">{{this.$store.state.cveId}} is not found.</h2>
22+
<h2 class="title mb-2">{{this.$store.state.cveId}} not found.</h2>
2323
<span class="icon-text">
2424
<a href="https://cve.mitre.org/cve/search_cve_list.html" target="_blank">
2525
Find CVE Record by Keyword
@@ -98,7 +98,8 @@
9898
<li v-if="ProductVersion !== undefined">
9999
<span class="has-text-weight-bold">Product: </span><span v-html="$sanitize(ProductVersion.product_name)"></span>
100100
</li>
101-
<li v-if="ProductVersion.vendor_version.version_value && ProductVersion.vendor_version.version_value.length > 0">
101+
<li v-if="ProductVersion.vendor_version.version_value && ProductVersion.vendor_version.version_value.length > 0
102+
&& ProductVersion.vendor_version.version_value[0] !== ''">
102103
<span class="has-text-weight-bold">Versions:</span>
103104
<span v-html="$sanitize(ProductVersion.vendor_version.version_value.join(', '))"></span>
104105
</li>
@@ -115,14 +116,14 @@
115116
<td>
116117
<ul v-for="reference in this.$store.state.recordData.reference_data" :key="reference.index">
117118
<li v-if="reference.url !== undefined" class="cve-task-tile-list-item">
118-
<a :href="$sanitize(reference.url)" class="cve-word-wrap">
119+
<a :href="$sanitize(reference.url)" class="cve-word-wrap" target="_blank">
119120
{{reference.name === undefined ? $sanitize(reference.url) : $sanitize(reference.name)}}
120121
</a>
121122
</li>
122123
</ul>
123124
<span>
124125
View additional information about
125-
<a :href="`https://nvd.nist.gov/view/vuln/detail?vulnId=${this.$store.state.recordData.ID}`">
126+
<a :href="`https://nvd.nist.gov/view/vuln/detail?vulnId=${this.$store.state.recordData.ID}`" target="_blank">
126127
{{this.$store.state.recordData.ID}}
127128
<span class="icon cve-icon-xxs">
128129
<p id="nvd" class="is-hidden">external site</p>

0 commit comments

Comments
 (0)