Commit 110d7dd9 authored by IKEDA Soji's avatar IKEDA Soji
Browse files

small fix: include.* file would allow any characters except slash (/).

parent a569fc2d
......@@ -147,7 +147,12 @@ sub new {
} else {
$name = Conf::get_robot_conf($that, $ppath);
}
unless (defined $name and $name =~ /\A[-\w]+\z/) {
unless (
defined $name
and ( $function eq 'include' and $name =~ m{\A[^/]+\z}
or $name =~ /\A[-\w]+\z/)
) {
$log->syslog('err', 'Unknown or undefined scenario function "%s"',
$function);
return undef;
......
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