зеркало из https://github.com/mozilla/gecko-dev.git
fix for 41303: new email tech doesn't work with emailregexp
patch by JRobertson@medevolve.com (Jon Robertson)
This commit is contained in:
Родитель
5f6d82ba0a
Коммит
1086d3e077
|
@ -471,6 +471,11 @@ sub NewProcessOneBug {
|
|||
for my $person (@personlist) {
|
||||
$count++;
|
||||
|
||||
my $match = "^[^@, ]*@[^@, ]*\.[^@, ]*\$";
|
||||
if ($person !~ /$match/) {
|
||||
$person = $person . Param('emailsuffix');
|
||||
}
|
||||
|
||||
&NewProcessOnePerson($person, $count, \@headerlist, \%values,
|
||||
\%defmailhead, \%fielddescription, $difftext,
|
||||
$newcomments, $start, $id, 1);
|
||||
|
@ -510,7 +515,7 @@ sub NewProcessOnePerson ($$\@\%\%\%$$$$) {
|
|||
|
||||
foreach my $watcher ( $watcherSet->toArray() ) {
|
||||
|
||||
&NewProcessOnePerson(DBID_to_name($watcher),
|
||||
&NewProcessOnePerson(DBID_to_name($watcher) . Param('emailsuffix'),
|
||||
$count, \@headerlist, \%values,
|
||||
\%defmailhead, \%fielddescription, $difftext,
|
||||
$newcomments, $start, $id, 0);
|
||||
|
|
Загрузка…
Ссылка в новой задаче