Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
emulab-devel
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Elijah Grubb
emulab-devel
Commits
4e338182
Commit
4e338182
authored
12 years ago
by
Leigh B Stoller
Browse files
Options
Downloads
Patches
Plain Diff
Fix a couple php warnings.
parent
8db4850e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
www/beginexp.php
+9
-6
9 additions, 6 deletions
www/beginexp.php
www/gensslcert.php3
+4
-0
4 additions, 0 deletions
www/gensslcert.php3
with
13 additions
and
6 deletions
www/beginexp.php
+
9
−
6
View file @
4e338182
...
@@ -86,6 +86,15 @@ elseif (! isset($formfields)) {
...
@@ -86,6 +86,15 @@ elseif (! isset($formfields)) {
PAGEARGERROR
();
PAGEARGERROR
();
}
}
#
# For the benefit of the form. Remember to pass back actual filename, not
# the php temporary file name. Note that there appears to be some kind
# of breakage, at least in opera; filename has no path.
#
if (isset($_FILES['exp_nsfile'])) {
$formfields
[
'exp_nsfile'
]
=
$_FILES
[
'exp_nsfile'
][
'name'
];
}
# Some local variables.
# Some local variables.
$nsfilelocale
=
""
;
$nsfilelocale
=
""
;
$thensfile
=
0
;
$thensfile
=
0
;
...
@@ -204,12 +213,6 @@ elseif (isset($_FILES['exp_nsfile']) && $_FILES['exp_nsfile']['size'] != 0) {
...
@@ -204,12 +213,6 @@ elseif (isset($_FILES['exp_nsfile']) && $_FILES['exp_nsfile']['size'] != 0) {
$_FILES
[
'exp_nsfile'
][
'tmp_name'
]))
{
$_FILES
[
'exp_nsfile'
][
'tmp_name'
]))
{
$errors
[
"Local NS File"
]
=
"Temp path includes illegal characters"
;
$errors
[
"Local NS File"
]
=
"Temp path includes illegal characters"
;
}
}
#
# For the benefit of the form. Remember to pass back actual filename, not
# the php temporary file name. Note that there appears to be some kind
# of breakage, at least in opera; filename has no path.
#
$formfields['exp_nsfile'] = $_FILES['exp_nsfile']['name'];
$nsfilelocale
=
"upload"
;
$nsfilelocale
=
"upload"
;
}
}
elseif
(
isset
(
$formfields
[
"exp_nsfile_contents"
])
&&
elseif
(
isset
(
$formfields
[
"exp_nsfile_contents"
])
&&
...
...
This diff is collapsed.
Click to expand it.
www/gensslcert.php3
+
4
−
0
View file @
4e338182
...
@@ -231,6 +231,10 @@ function SPITFORM($target_user, $formfields, $errors)
...
@@ -231,6 +231,10 @@ function SPITFORM($target_user, $formfields, $errors)
value=
\"
"
.
$formfields
[
"passphrase2"
]
.
"
\"
value=
\"
"
.
$formfields
[
"passphrase2"
]
.
"
\"
size=24></td>
size=24></td>
</tr>
\n
"
;
</tr>
\n
"
;
if
(
!
isset
(
$formfields
[
"oldpassphrase"
]))
{
$formfields
[
"oldpassphrase"
]
=
""
;
}
echo
"<tr>
echo
"<tr>
<td>Old PassPhrase:</td>
<td>Old PassPhrase:</td>
<td class=left>
<td class=left>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment