summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/User.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm
index 8ccd15a63..f9448ff57 100644
--- a/Bugzilla/User.pm
+++ b/Bugzilla/User.pm
@@ -1413,8 +1413,8 @@ sub wants_bug_mail {
if ($fieldName eq "CC") {
my $login = $self->login;
- my $inold = ($old =~ /^(.*,)?\Q$login\E(,.*)?$/);
- my $innew = ($new =~ /^(.*,)?\Q$login\E(,.*)?$/);
+ my $inold = ($old =~ /^(.*,\s*)?\Q$login\E(,.*)?$/);
+ my $innew = ($new =~ /^(.*,\s*)?\Q$login\E(,.*)?$/);
if ($inold != $innew)
{
$events{+EVT_ADDED_REMOVED} = 1;