Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
c19c4236
Commit
c19c4236
authored
Dec 06, 2002
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow + in image names.
parent
888fd409
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
www/newimageid.php3
www/newimageid.php3
+2
-2
www/newimageid_ez.php3
www/newimageid_ez.php3
+2
-2
No files found.
www/newimageid.php3
View file @
c19c4236
...
...
@@ -422,9 +422,9 @@ if (!isset($formfields[imagename]) ||
$errors
[
"Descriptor Name"
]
=
"Missing Field"
;
}
else
{
if
(
!
ereg
(
"^[a-zA-Z0-9][-_a-zA-Z0-9\.]+$"
,
$formfields
[
imagename
]))
{
if
(
!
ereg
(
"^[a-zA-Z0-9][-_a-zA-Z0-9\.
\+
]+$"
,
$formfields
[
imagename
]))
{
$errors
[
"Descriptor Name"
]
=
"Must be alphanumeric (includes _
and -
and .)<br>"
.
"Must be alphanumeric (includes _
, -, +,
and .)<br>"
.
"and must begin with an alphanumeric"
;
}
elseif
(
strlen
(
$formfields
[
imagename
])
>
$TBDB_IMAGEID_IMAGENAMELEN
)
{
...
...
www/newimageid_ez.php3
View file @
c19c4236
...
...
@@ -443,9 +443,9 @@ if (!isset($formfields[imagename]) ||
$errors
[
"Descriptor Name"
]
=
"Missing Field"
;
}
else
{
if
(
!
ereg
(
"^[a-zA-Z0-9][-_a-zA-Z0-9\.]+$"
,
$formfields
[
imagename
]))
{
if
(
!
ereg
(
"^[a-zA-Z0-9][-_a-zA-Z0-9\.
\+
]+$"
,
$formfields
[
imagename
]))
{
$errors
[
"Descriptor Name"
]
=
"Must be alphanumeric (includes _
and -
and .)<br>"
.
"Must be alphanumeric (includes _
, -, +,
and .)<br>"
.
"and must begin with an alphanumeric"
;
}
elseif
(
strlen
(
$formfields
[
imagename
])
>
$TBDB_IMAGEID_IMAGENAMELEN
)
{
...
...
Write
Preview
Markdown
is supported
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