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-devel
Commits
5e1c3d84
Commit
5e1c3d84
authored
Feb 12, 2004
by
Leigh B. Stoller
Browse files
Fix a couple of bugs wrt how netbuild communicates with the beginexp
page.
parent
4e6f6a54
Changes
2
Hide whitespace changes
Inline
Side-by-side
www/beginexp_form.php3
View file @
5e1c3d84
...
...
@@ -189,7 +189,7 @@ function SPITFORM($formfields, $errors)
echo
"</table><br>
\n
"
;
}
else
{
if
(
!
isset
(
$nsref
)
&&
!
isset
(
$view
[
'quiet'
]))
{
if
(
!
isset
(
$
formfields
[
nsref
]
)
&&
!
isset
(
$view
[
'quiet'
]))
{
echo
"<p><ul>
<li><b>If you have an NS file:</b><br> You may want to
<b><a href='nscheck_form.php3'>syntax check it first</a></b>
...
...
www/beginexp_xml.php3
View file @
5e1c3d84
...
...
@@ -148,14 +148,14 @@ elseif (!TBvalid_description($formfields[exp_description])) {
#
if
(
isset
(
$formfields
[
nsref
]))
{
if
(
$formfields
[
nsref
]
==
""
||
!
e
reg
(
"^[0-9]
+$"
,
$formfields
[
nsref
]
==
""
))
{
$errors
[
"NS File Reference"
]
=
TBFieldErrorString
()
;
!
p
reg
_match
(
"/^\d
+$
/
"
,
$formfields
[
nsref
]))
{
$errors
[
"NS File Reference"
]
=
"Invalid characters"
;
}
}
if
(
isset
(
$formfields
[
guid
]))
{
if
(
$formfields
[
guid
]
==
""
||
!
e
reg
(
"^[0-9]
+$"
,
$formfields
[
guid
]
==
""
))
{
$errors
[
"NS File UID"
]
=
TBFieldErrorString
()
;
!
p
reg
_match
(
"/^\d
+$
/
"
,
$formfields
[
guid
]))
{
$errors
[
"NS File
G
UID"
]
=
"Invalid characters"
;
}
$nsfilelocale
=
"nsref"
;
}
...
...
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