From: Don Armstrong Date: Sat, 30 Nov 2013 23:57:44 +0000 (-0800) Subject: Support CVEs surrounded by parenthesis (closes: #662228). Thanks to Ari Pollak. X-Git-Tag: release/2.6.0~267 X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=ebc68050faa07f08c26110d0f8de15c79fa522b8 Support CVEs surrounded by parenthesis (closes: #662228). Thanks to Ari Pollak. --- 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).