提交 8baf06a0 编写于 作者: R Ryan Anderson 提交者: Junio C Hamano

Fix a bug in email extraction used in git-send-email.

(Also, kill off an accidentally created warning.)
Signed-off-by: NRyan Anderson <rda@google.com>
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 58063245
......@@ -322,7 +322,11 @@ sub extract_valid_address {
} else {
# less robust/correct than the monster regexp in Email::Valid,
# but still does a 99% job, and one less dependency
return ($address =~ /([^\"<>\s]+@[^<>\s]+)/);
my $cleaned_address;
if ($address =~ /([^\"<>\s]+@[^<>\s]+)/) {
$cleaned_address = $1;
}
return $cleaned_address;
}
}
......@@ -416,6 +420,7 @@ sub send_message
}
$reply_to = $initial_reply_to;
$references = $initial_reply_to;
make_message_id();
$subject = $initial_subject;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册