]> git.donarmstrong.com Git - debbugs.git/commitdiff
tweak end of CVE regex slightly to allow []
authorDon Armstrong <don@donarmstrong.com>
Tue, 23 Feb 2010 02:20:48 +0000 (18:20 -0800)
committerDon Armstrong <don@donarmstrong.com>
Tue, 23 Feb 2010 02:20:48 +0000 (18:20 -0800)
Debbugs/CGI/Bugreport.pm

index 7f58514dbe3cb97bb68f3ed5cda6af9989b2ccad..8589ac9a71f971217472b2cd8c749d27f52b0a44 100644 (file)
@@ -256,7 +256,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}) {