Skip to content
GitLab
Menu
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-stable
Commits
d76a1c9d
Commit
d76a1c9d
authored
Mar 05, 2002
by
Leigh B. Stoller
Browse files
Fix up ereg for ID so that _ (underscore) is not allowed.
parent
6f755357
Changes
1
Show whitespace changes
Inline
Side-by-side
www/beginexp.php3
View file @
d76a1c9d
...
...
@@ -352,8 +352,9 @@ if (!isset($formfields[exp_id]) ||
$errors
[
"Experiment Name"
]
=
"Missing Field"
;
}
else
{
if
(
!
ereg
(
"^[-_a-zA-Z0-9]+$"
,
$formfields
[
exp_id
]))
{
$errors
[
"Experiment Name"
]
=
"Must be alphanumeric characters only!"
;
if
(
!
ereg
(
"^[-a-zA-Z0-9]+$"
,
$formfields
[
exp_id
]))
{
$errors
[
"Experiment Name"
]
=
"Must be alphanumeric characters only (dash okay)!"
;
}
elseif
(
strlen
(
$formfields
[
exp_id
])
>
$TBDB_EIDLEN
)
{
$errors
[
"Experiment Name"
]
=
...
...
Write
Preview
Supports
Markdown
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