diff options
author | David Lawrence <dkl@mozilla.com> | 2014-10-10 15:47:10 +0200 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2014-10-10 15:47:10 +0200 |
commit | 1f84551e1414eeba886e04e0e9e2a8e61d568fc1 (patch) | |
tree | 35ded23a72d0d9a3a1ba5c9d2bb9c6dc1e935bbc | |
parent | 75e5744c27844bc48d5a01aeb04f7d1c31237b7d (diff) | |
download | bugzilla-1f84551e1414eeba886e04e0e9e2a8e61d568fc1.tar.gz bugzilla-1f84551e1414eeba886e04e0e9e2a8e61d568fc1.tar.xz |
Bug 1080600: CVE ID format change: CVE-\d{4}-\d{4} becomes CVE-\d{4}-\d{4,7} this year
-rw-r--r-- | extensions/BMO/Extension.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm index c28238197..d679ac91e 100644 --- a/extensions/BMO/Extension.pm +++ b/extensions/BMO/Extension.pm @@ -447,7 +447,7 @@ sub bug_format_comment { # link to CVE/CAN security releases push (@$regexes, { - match => qr/(?<!\/|=)\b((?:CVE|CAN)-\d{4}-\d{4})\b/, + match => qr/(?<!\/|=)\b((?:CVE|CAN)-\d{4}-(?:\d{4}|[1-9]\d{4,6})(?!\d))\b/, replace => sub { my $args = shift; my $match = html_quote($args->{matches}->[0]); |