Skip to content

Commit

Permalink
Crash in create_list_request when list name is missing sympa-communit…
Browse files Browse the repository at this point in the history
  • Loading branch information
ikedas committed Dec 3, 2018
1 parent 3fb4ac1 commit 6b09681
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/lib/Sympa/Aliases.pm
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ sub check_new_listname {
my $listname = shift;
my $robot_id = shift;

die 'bug in logic. Ask developer'
unless defined $listname and length $listname;
unless (defined $listname and length $listname) {
$log->syslog('err', 'No listname');
return ('user', 'listname_needed');
}

$listname = lc $listname;

Expand Down
2 changes: 1 addition & 1 deletion src/lib/Sympa/Request/Handler/move_list.pm
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ sub _twist {

my $robot_id = $request->{context};
my $current_list = $request->{current_list};
my $listname = lc $request->{listname};
my $listname = lc($request->{listname} || '');
my $mode = $request->{mode};
my $pending = $request->{pending};
my $notify = $request->{notify};
Expand Down

0 comments on commit 6b09681

Please sign in to comment.