Commit 8cdd9555 authored by Leigh Stoller's avatar Leigh Stoller

Minor sshkey fix.

parent 0b29d43c
......@@ -493,6 +493,11 @@ if (isset($_FILES['keyfile']) &&
$localfile = $_FILES['keyfile']['tmp_name'];
$args["sshkey"] = file_get_contents($localfile);
#
# The filename will be lost on another trip through the browser.
# So stick the key into the box.
#
$formfields["sshkey"] = $args["sshkey"];
}
elseif (isset($formfields["sshkey"]) && $formfields["sshkey"] != "") {
$args["sshkey"] = $formfields["sshkey"];
......
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