]> git.donarmstrong.com Git - debbugs.git/commitdiff
Support CVEs surrounded by parenthesis (closes: #662228). Thanks to Ari Pollak.
authorDon Armstrong <don@donarmstrong.com>
Sat, 30 Nov 2013 23:57:44 +0000 (15:57 -0800)
committerDon Armstrong <don@donarmstrong.com>
Sat, 30 Nov 2013 23:57:44 +0000 (15:57 -0800)
Debbugs/CGI/Bugreport.pm
debian/changelog

index 67ed7ba9c6ba04a1b2a6703168f3982e98b5d552..f0a40d6a93c7073ab7979af4947a62788091396a 100644 (file)
@@ -283,7 +283,7 @@ sub display_entity {
             length $config{cve_tracker}
            ) {
             # Add links to CVE vulnerabilities (closes #568464)
-            $body =~ s{(^|\s)(CVE-\d{4}-\d{4,})(\s|[,.-\[\]]|$)}
+            $body =~ s{(^|\s|[\(\[])(CVE-\d{4}-\d{4,})(\s|[,.-\[\]\)]|$)}
                       {$1<a href="http://$config{cve_tracker}$2">$2</a>$3}gxm;
         }
         if (not exists $param{att}) {
index a1f2ad2c5da4a1e3b49a1cb898392bef175ee6f2..9491723a318c28d181db7c6575b68d9297e8944d 100644 (file)
@@ -21,6 +21,8 @@ debbugs (2.4.2~exp2) UNRELEASED; urgency=low
   * uri_escape e-mails in libravatar (closes: #728034). Thanks to Fabien
     Givors for pointing this out and providing a patch.
   * Fix title of $gBug (closes: #546383). Thanks to Jakub Wilk.
+  * Support CVEs surrounded by parenthesis (closes: #662228). Thanks to
+    Ari Pollak.
 
   [Thanks to Arnout Engelen: ]
   * Add Homepage (closes: #670555).