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
1a41e873
Commit
1a41e873
authored
Jun 26, 2001
by
Robert Ricci
Browse files
Limit Full Name to alphanumeric, '.', and '-'.
parent
6d1ebc52
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/usradded.php3
View file @
1a41e873
...
...
@@ -23,7 +23,11 @@ if (!isset($usr_email) ||
if
(
!
isset
(
$usr_name
)
||
strcmp
(
$usr_name
,
""
)
==
0
)
{
FORMERROR
(
"Full Name"
);
}
else
if
(
!
ereg
(
"^[a-zA-Z0-9 .\-]+$"
,
$usr_name
))
{
USERERROR
(
"Your Full Name can only contain alphanumeric characters, '-', "
.
"and '.'"
,
1
);
}
if
(
!
isset
(
$pid
)
||
strcmp
(
$pid
,
""
)
==
0
)
{
FORMERROR
(
"Project"
);
...
...
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