fix mercurial commit with session but without nickname

master
Joey Hess 2011-07-30 10:46:26 +02:00
parent f78c1b6a6c
commit 577f5d3837
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,6 @@ sub rcs_commit_helper (@) {
$ENV{HGENCODING} = 'utf-8';
my $user="Anonymous";
my $nickname;
if (defined $params{session}) {
if (defined $params{session}->param("name")) {
$user = $params{session}->param("name");
@ -189,6 +188,7 @@ sub rcs_commit_helper (@) {
$user = $params{session}->remote_addr();
}
my $nickname=$user;
if (defined $params{session}->param("nickname")) {
$nickname=encode_utf8($params{session}->param("nickname"));
$nickname=~s/\s+/_/g;