From: lpsolit%gmail.com <> Date: Mon, 24 Sep 2007 03:13:35 +0000 (+0000) Subject: Bug 394796: "I'm added to or removed from this capacity" for "CCed" doesn't work... X-Git-Tag: bugzilla-3.0.3~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=175e8849928957de1d8211988f7723c2ff141d98;p=thirdparty%2Fbugzilla.git Bug 394796: "I'm added to or removed from this capacity" for "CCed" doesn't work correctly if several users are added or removed at once from the CC list - Patch by Frédéric Buclin r=wurblzap a=LpSolit --- diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index ae0505323b..2a61ab76e9 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -1375,8 +1375,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;