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
7d77a404
Commit
7d77a404
authored
Feb 05, 2001
by
Leigh B. Stoller
Browse files
Do a string compare on the pid to ensure case sensitive match. We could
make the pid field "binary" in the DB as an alternative to this.
parent
e59cc59c
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/usradded.php3
View file @
7d77a404
...
...
@@ -108,7 +108,7 @@ else {
# project membership, but I don't like that.
#
$query_result
=
mysql_db_query
(
$TBDBNAME
,
"SELECT
*
FROM projects WHERE pid=
\"
$pid
\"
"
);
"SELECT
pid
FROM projects WHERE pid=
\"
$pid
\"
"
);
if
(
!
$query_result
)
{
$err
=
mysql_error
();
TBERROR
(
"Database Error retrieving info for
$pid
:
$err
\n
"
,
1
);
...
...
@@ -116,6 +116,13 @@ if (! $query_result) {
if
(
mysql_num_rows
(
$query_result
)
==
0
)
{
USERERROR
(
"No such project
$pid
. Please go back and try again."
,
1
);
}
#
# XXX String compare to ensure case match.
#
$row
=
mysql_fetch_row
(
$query_result
);
if
(
strcmp
(
$row
[
0
],
$pid
))
{
USERERROR
(
"No such project
$pid
. Please go back and try again."
,
1
);
}
#
# For a new user:
...
...
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