fix typo in sftp public key

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Martin 2017-02-23 17:29:04 +01:00 committed by Morris Jobke
parent 528a903a7b
commit 718d1f3f15
No known key found for this signature in database
GPG key ID: 9CE5ED29E7FCD38A

View file

@ -73,7 +73,7 @@ class AjaxController extends Controller {
private function generateSshKeys() { private function generateSshKeys() {
$key = $this->rsaMechanism->createKey(); $key = $this->rsaMechanism->createKey();
// Replace the placeholder label with a more meaningful one // Replace the placeholder label with a more meaningful one
$key['publicKey'] = str_replace('phpseclib-generated-key', gethostname(), $key['publickey']); $key['publickey'] = str_replace('phpseclib-generated-key', gethostname(), $key['publickey']);
return $key; return $key;
} }