Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
dab40c16
Commit
dab40c16
authored
Apr 19, 2001
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix up regular expression to use $proj_head_uid instead of $uid. I'm a
dope!
parent
d25c1100
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
www/newproject.php3
www/newproject.php3
+5
-4
No files found.
www/newproject.php3
View file @
dab40c16
...
...
@@ -78,11 +78,12 @@ if (!isset($usr_phones) ||
# Check uid and pid for sillyness.
#
if
(
!
ereg
(
"^[-_a-zA-Z0-9]+$"
,
$pid
))
{
USERERROR
(
"The project name must be alphanumeric characters only!"
,
1
);
USERERROR
(
"The project name (
$pid
) must be alphanumeric characters only!"
,
1
);
}
if
(
!
ereg
(
"^[a-z0-9]+$"
,
$uid
))
{
USERERROR
(
"Your username name must be lowercase
alphanumeric characters
"
.
"only!"
,
1
);
if
(
!
ereg
(
"^[a-z0-9]+$"
,
$
proj_head_
uid
))
{
USERERROR
(
"Your username
(
$proj_head_uid
)
name must be lowercase "
.
"
alphanumeric characters
only!"
,
1
);
}
#
...
...
Write
Preview
Markdown
is supported
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