Commit 1a41e873 authored by Robert Ricci's avatar Robert Ricci
Browse files

Limit Full Name to alphanumeric, '.', and '-'.

parent 6d1ebc52
......@@ -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");
......
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