Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Sympa
Commits
110d7dd9
Commit
110d7dd9
authored
Mar 04, 2019
by
IKEDA Soji
Browse files
small fix: include.* file would allow any characters except slash (/).
parent
a569fc2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/Sympa/Scenario.pm
View file @
110d7dd9
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment