From: Don Armstrong Date: Tue, 23 Feb 2010 02:13:04 +0000 (-0800) Subject: fix linkification of CVE reports X-Git-Tag: release/2.6.0~424^2 X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=f0163c2e0ad2b57dd52c746427b0a1c05ab8bd59 fix linkification of CVE reports --- diff --git a/Debbugs/CGI/Bugreport.pm b/Debbugs/CGI/Bugreport.pm index 2359837..7f58514 100644 --- a/Debbugs/CGI/Bugreport.pm +++ b/Debbugs/CGI/Bugreport.pm @@ -256,8 +256,8 @@ sub display_entity { length $config{cve_tracker} ) { # Add links to CVE vulnerabilities (closes #568464) - $body =~ s{(CVE-\d{4}-\d{4,})} - {$1}gx; + $body =~ s{(^|\s)(CVE-\d{4}-\d{4,})(\s|[,.-]|$)} + {$1$2$3}gxm; } if (not exists $param{att}) { print {$param{output}} qq(
$body
\n);