]> git.pld-linux.org Git - packages/cvsweb.git/blame - cveurl.patch
- drop obsolete and outdated manual inclusion of rpm macros
[packages/cvsweb.git] / cveurl.patch
CommitLineData
ee9c3f18
ER
1--- cvsweb-3.0.6/cvsweb.cgi 2011-03-02 11:04:52.956814108 +0200
2--- cvsweb-3.0.6/cvsweb.cgi 2011-03-02 11:04:47.426931825 +0200
3@@ -67,7 +67,7 @@
4 %alltags %fileinfo %tags @branchnames %nameprinted
5 %symrev %revsym @allrevisions %date %author @revdisplayorder
6 @revisions %state %difflines %log %branchpoint @revorder $keywordsubstitution
7- $prcgi @prcategories $re_prcategories $prkeyword $re_prkeyword $mancgi
8+ $prcgi @prcategories $re_prcategories $prkeyword $re_prkeyword $mancgi $cveurl
9 $doCheckout $scriptname $scriptwhere
10 $where $Browser $nofilelinks $maycompress @stickyvars %funcline_regexp
11 $is_links $is_lynx $is_w3m $is_msie $is_mozilla3 $is_textbased
12@@ -1569,6 +1584,17 @@
13 }egx;
14 } $_;
15 }
16+
17+ # CVE urls
18+ if (defined($cveurl)) {
19+ $_ = htmlify_sub {
20+ s{
21+ (\bCVE-\d{4}-\d{4}\b)
22+ }{
23+ &link($1, sprintf($cveurl, $1))
24+ }egox;
25+ } $_;
26+ }
27 }
28
29 return $_;
30--- cvsweb-3.0.6/cvsweb.conf~ 2011-03-02 11:06:29.000000000 +0200
31+++ cvsweb-3.0.6/cvsweb.conf 2011-03-02 11:08:14.986810727 +0200
32@@ -82,6 +82,9 @@
33 # 'Yet another one' => 'http://192.168.0.2/cgi-bin/cvsweb.cgi/',
34 #);
35
36+# CVE Links
37+#$cveurl = "https://cve.mitre.org/cgi-bin/cvename.cgi?name=%s";
38+
39 # Bug tracking system linking options ("PR" means Problem Report, as in GNATS)
40 # This will be done only for views for which $allow_*_extra below is true.
41 #
This page took 0.071666 seconds and 4 git commands to generate.