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
e94789a8
Commit
e94789a8
authored
Feb 17, 2004
by
Leigh B. Stoller
Browse files
Fix silly logic bug that was causing netbuild generated NS files to
fail.
parent
e25a0412
Changes
1
Show whitespace changes
Inline
Side-by-side
www/beginexp_xml.php3
View file @
e94789a8
...
...
@@ -146,20 +146,20 @@ elseif (!TBvalid_description($formfields[exp_description])) {
# NS File. There is a bunch of stuff here for Netbuild, which uses the
# beginexp form as a backend. Switch to XML interface someday ...
#
if
(
isset
(
$formfields
[
nsref
]))
{
if
(
$formfields
[
nsref
]
==
""
||
!
preg_match
(
"/^\d+$/"
,
$formfields
[
nsref
]))
{
$errors
[
"NS File Reference"
]
=
"Invalid characters"
;
}
}
if
(
isset
(
$formfields
[
guid
]))
{
if
(
$formfields
[
guid
]
==
""
||
!
preg_match
(
"/^\d+$/"
,
$formfields
[
guid
]))
{
$errors
[
"NS File GUID"
]
=
"Invalid characters"
;
}
}
if
(
isset
(
$formfields
[
nsref
]))
{
if
(
$formfields
[
nsref
]
==
""
||
!
preg_match
(
"/^\d+$/"
,
$formfields
[
nsref
]))
{
$errors
[
"NS File Reference"
]
=
"Invalid characters"
;
}
$nsfilelocale
=
"nsref"
;
}
if
(
isset
(
$formfields
[
exp_localnsfile
])
&&
else
if
(
isset
(
$formfields
[
exp_localnsfile
])
&&
$formfields
[
exp_localnsfile
]
!=
""
)
{
if
(
!
preg_match
(
"/^([-\@\w\.\/]+)$/"
,
$formfields
[
exp_localnsfile
]))
{
$errors
[
"Server NS File"
]
=
"Pathname includes illegal characters"
;
...
...
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