Commit dab40c16 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Fix up regular expression to use $proj_head_uid instead of $uid. I'm a

dope!
parent d25c1100
......@@ -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);
}
#
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment