Browse Source

Handle no user set in sftp constructor

tags/v9.0beta1
Robin Appelman 8 years ago
parent
commit
54e58b520c
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      apps/files_external/lib/sftp.php

+ 3
- 0
apps/files_external/lib/sftp.php View File

@@ -85,6 +85,9 @@ class SFTP extends \OC\Files\Storage\Common {
$this->host = $parsedHost[0];
$this->port = $parsedHost[1];

if (!isset($params['user'])) {
throw new \UnexpectedValueException('no authentication parameters specified');
}
$this->user = $params['user'];

if (isset($params['public_key_auth'])) {

Loading…
Cancel
Save