From c513b66e71d0be4cf947ccac69e9bfc69a5333ce Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Mon, 17 Jun 2013 20:48:49 +0000 Subject: Make sure CVE is not displayed when not set --- tmpl/advisory.html | 2 +- tmpl/advisory.txt | 2 +- tmpl/advisory_item.rss | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tmpl/advisory.html b/tmpl/advisory.html index 394fc7c..1e984c8 100644 --- a/tmpl/advisory.html +++ b/tmpl/advisory.html @@ -20,7 +20,7 @@
[% SET sep = '' %] - [% IF adv.CVE.list.size != 0 %] + [% IF adv.CVE && adv.CVE.list.size != 0 %] CVE: [% FOREACH cve IN adv.CVE %] [% sep %] diff --git a/tmpl/advisory.txt b/tmpl/advisory.txt index 016df71..6bfdf0a 100644 --- a/tmpl/advisory.txt +++ b/tmpl/advisory.txt @@ -6,7 +6,7 @@ Publication date: [% date.format(adv.status.published, format => '%d %b %Y', gmt URL: [% config.site_url %]/[% basename.ID(advisory) %].html Type: [% adv.type %] Affected Mageia releases: [% adv.src.keys.sort.join(', ') %] -[% IF adv.CVE.list.size != 0 -%] +[% IF adv.CVE && adv.CVE.list.size != 0 -%] CVE: [% adv.CVE.join(",\n ") %] [% END -%] diff --git a/tmpl/advisory_item.rss b/tmpl/advisory_item.rss index 9edfe05..73d9a7b 100644 --- a/tmpl/advisory_item.rss +++ b/tmpl/advisory_item.rss @@ -19,7 +19,7 @@ <br /> [% SET sep = '' %] - [% IF advisory.CVE.list.size != 0 %] + [% IF advisory.CVE && advisory.CVE.list.size != 0 %] CVE: [% FOREACH cve IN advisory.CVE %] [% sep %] -- cgit v1.2.1