Commit d76a1c9d authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Fix up ereg for ID so that _ (underscore) is not allowed.

parent 6f755357
...@@ -352,8 +352,9 @@ if (!isset($formfields[exp_id]) || ...@@ -352,8 +352,9 @@ if (!isset($formfields[exp_id]) ||
$errors["Experiment Name"] = "Missing Field"; $errors["Experiment Name"] = "Missing Field";
} }
else { else {
if (! ereg("^[-_a-zA-Z0-9]+$", $formfields[exp_id])) { if (! ereg("^[-a-zA-Z0-9]+$", $formfields[exp_id])) {
$errors["Experiment Name"] = "Must be alphanumeric characters only!"; $errors["Experiment Name"] =
"Must be alphanumeric characters only (dash okay)!";
} }
elseif (strlen($formfields[exp_id]) > $TBDB_EIDLEN) { elseif (strlen($formfields[exp_id]) > $TBDB_EIDLEN) {
$errors["Experiment Name"] = $errors["Experiment Name"] =
......
Supports Markdown
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