From: Don Armstrong Date: Tue, 23 Feb 2010 02:20:48 +0000 (-0800) Subject: tweak end of CVE regex slightly to allow [] X-Git-Tag: release/2.6.0~423^2 X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=4742343577bd92dadcc2a20ba686b349bd458c00;hp=f0163c2e0ad2b57dd52c746427b0a1c05ab8bd59 tweak end of CVE regex slightly to allow [] --- diff --git a/Debbugs/CGI/Bugreport.pm b/Debbugs/CGI/Bugreport.pm index 7f58514..8589ac9 100644 --- a/Debbugs/CGI/Bugreport.pm +++ b/Debbugs/CGI/Bugreport.pm @@ -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$2$3}gxm; } if (not exists $param{att}) {