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

Fix a couple of bugs wrt how netbuild communicates with the beginexp

page.
parent 4e6f6a54
......@@ -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>
......
......@@ -148,14 +148,14 @@ elseif (!TBvalid_description($formfields[exp_description])) {
#
if (isset($formfields[nsref])) {
if ($formfields[nsref] == "" ||
!ereg("^[0-9]+$", $formfields[nsref] == "")) {
$errors["NS File Reference"] = TBFieldErrorString();
!preg_match("/^\d+$/", $formfields[nsref])) {
$errors["NS File Reference"] = "Invalid characters";
}
}
if (isset($formfields[guid])) {
if ($formfields[guid] == "" ||
!ereg("^[0-9]+$", $formfields[guid] == "")) {
$errors["NS File UID"] = TBFieldErrorString();
!preg_match("/^\d+$/", $formfields[guid])) {
$errors["NS File GUID"] = "Invalid characters";
}
$nsfilelocale = "nsref";
}
......
Markdown is supported
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