Unverified Commit a7069c6a authored by Stefan Hornburg (Racke)'s avatar Stefan Hornburg (Racke)
Browse files

Verify robot names passed to --make_alias_file command line option (#746).

parent 4d3ae352
......@@ -415,7 +415,14 @@ if ($main::options{'dump'} or $main::options{'dump_users'}) {
if ($robots eq '*') {
@robots = Sympa::List::get_robots();
} else {
@robots = grep { length $_ } split(/[\s,]+/, $robots);
for my $name (split/[\s,]+/, $robots) {
next unless length($name);
if (Conf::valid_robot($name)) {
push @robots, $name;
} else {
printf STDERR "Invalid robot %s\n", $name;
}
}
}
exit 0 unless @robots;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment