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
b0f23df7
Commit
b0f23df7
authored
Mar 09, 2006
by
Leigh B. Stoller
Browse files
Allow spaces in passphrases by fixing up how shell args where being
escaped, when passed to the checkpass function.
parent
ebb5dd08
Changes
2
Hide whitespace changes
Inline
Side-by-side
www/defs.php3.in
View file @
b0f23df7
...
...
@@ -372,10 +372,12 @@ function CHECKURL($url, &$error) {
function
CHECKPASSWORD
(
$uid
,
$password
,
$name
,
$email
,
&
$error
)
{
global
$TBCHKPASS_PATH
;
$uid
=
escapeshellarg
(
$uid
);
$password
=
escapeshellarg
(
$password
);
$stuff
=
escapeshellarg
(
"
$name
:
$email
"
);
$mypipe
=
popen
(
escapeshellcmd
(
"
$TBCHKPASS_PATH
$password
$uid
'
$name
:
$email
'"
),
"w+"
);
$mypipe
=
popen
(
"
$TBCHKPASS_PATH
$password
$uid
$stuff
"
,
"w+"
);
if
(
$mypipe
)
{
$retval
=
fgets
(
$mypipe
,
1024
);
...
...
www/gensslcert.php3
View file @
b0f23df7
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2004 University of Utah and the Flux Group.
# Copyright (c) 2000-2004
, 2006
University of Utah and the Flux Group.
# All rights reserved.
#
include
(
"defs.php3"
);
...
...
@@ -197,6 +197,9 @@ $errors = array();
#
TBUserInfo
(
$target_uid
,
$user_name
,
$user_email
);
#TBERROR("$target_uid, $user_name, $user_email, " .
# $formfields[passphrase1], 0);
#
# Must supply a reasonable passphrase.
#
...
...
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