Skip to content

Commit

Permalink
receive-notify: LEAVE_SRC when decoding user/email.
Browse files Browse the repository at this point in the history
Good grief, Perl...
  • Loading branch information
waddlesplash committed Jan 10, 2019
1 parent eef19dd commit 178a3a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/gerrit/hooks/receive-notify.pl
Expand Up @@ -201,8 +201,8 @@ ($$$@)
{
my ($target, $subject, $content_type, @body) = @_;

my $committer = decode('UTF-8', $ENV{USER}, Encode::FB_CROAK);
my $mail_from = decode('UTF-8', $ENV{USER_EMAIL}, Encode::FB_CROAK);
my $committer = decode('UTF-8', $ENV{USER}, Encode::FB_CROAK | Encode::LEAVE_SRC);
my $mail_from = decode('UTF-8', $ENV{USER_EMAIL}, Encode::FB_CROAK | Encode::LEAVE_SRC);
if (!length($mail_from))
{
$mail_from = "$committer\@git.haiku-os.org";
Expand Down

0 comments on commit 178a3a0

Please sign in to comment.