Skip to content
GitLab
Menu
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
21489966
Commit
21489966
authored
Apr 12, 2004
by
Leigh B. Stoller
Browse files
Sanitize page arguments.
parent
620cdf02
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/shownodetype.php3
View file @
21489966
<?php
<?php
#
#
# EMULAB-COPYRIGHT
# EMULAB-COPYRIGHT
# Copyright (c) 2000-200
3
University of Utah and the Flux Group.
# Copyright (c) 2000-200
4
University of Utah and the Flux Group.
# All rights reserved.
# All rights reserved.
#
#
include
(
"defs.php3"
);
include
(
"defs.php3"
);
...
@@ -22,6 +22,10 @@ if (!isset($node_type) ||
...
@@ -22,6 +22,10 @@ if (!isset($node_type) ||
strcmp
(
$node_type
,
""
)
==
0
)
{
strcmp
(
$node_type
,
""
)
==
0
)
{
USERERROR
(
"You must provide a node type."
,
1
);
USERERROR
(
"You must provide a node type."
,
1
);
}
}
# Sanitize.
if
(
!
preg_match
(
"/^[-\w]+$/"
,
$node_type
))
{
PAGEARGERROR
(
"Invalid characters in arguments."
);
}
#
#
# Check to make sure that this is a valid nodeid
# Check to make sure that this is a valid nodeid
...
...
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