send-email: only allow one address per body tag
[gitweb.git] / git-send-email.perl
index da81be40cb7f9af1a960be2c22f8e75c9d16822e..2bc656ee7a850e9f47de7a8af2d3ae980755c53b 100755 (executable)
@@ -1545,7 +1545,7 @@ sub send_message {
        # Now parse the message body
        while(<$fh>) {
                $message .=  $_;
-               if (/^(Signed-off-by|Cc): (.*)$/i) {
+               if (/^(Signed-off-by|Cc): ([^>]*>?)/i) {
                        chomp;
                        my ($what, $c) = ($1, $2);
                        chomp $c;