Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
37b1f2f7
Commit
37b1f2f7
authored
Feb 11, 2004
by
Leigh B. Stoller
Browse files
Clean up some taint check regular expressions.
parent
7cbed49a
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/spewrpmtar.in
View file @
37b1f2f7
...
...
@@ -91,7 +91,7 @@ my $eid;
#
# Untaint the arguments.
#
if
(
$nodeid
=~
/^([-\
@\
w]+)$/
)
{
if
(
$nodeid
=~
/^([-\w]+)$/
)
{
$nodeid
=
$
1
;
}
else
{
...
...
@@ -195,7 +195,7 @@ sub VerifyFile()
# to hand out a file outside the appropriate files systems.
#
my
$translated
=
`
realpath
$file
`;
if
(
$translated
=~
/^([-\@\w.\/]+)$/
)
{
if
(
$translated
=~
/^([-\@\w
\
.\/]+)$/
)
{
$translated
=
$
1
;
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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