From ebc68050faa07f08c26110d0f8de15c79fa522b8 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Sat, 30 Nov 2013 15:57:44 -0800 Subject: [PATCH] Support CVEs surrounded by parenthesis (closes: #662228). Thanks to Ari Pollak. --- Debbugs/CGI/Bugreport.pm | 2 +- debian/changelog | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Debbugs/CGI/Bugreport.pm b/Debbugs/CGI/Bugreport.pm index 67ed7ba..f0a40d6 100644 --- a/Debbugs/CGI/Bugreport.pm +++ b/Debbugs/CGI/Bugreport.pm @@ -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$2$3}gxm; } if (not exists $param{att}) { diff --git a/debian/changelog b/debian/changelog index a1f2ad2..9491723 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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). -- 2.39.2