Skip to content
Snippets Groups Projects
Commit caa6d3e2 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #13857 from owncloud/phpseclib-0.3.9

Update phpseclib to version 0.3.9.
parents 2b1f39cd c640e2fa
Branches
No related tags found
No related merge requests found
...@@ -25,16 +25,8 @@ class SFTP extends \OC\Files\Storage\Common { ...@@ -25,16 +25,8 @@ class SFTP extends \OC\Files\Storage\Common {
private static $tempFiles = array(); private static $tempFiles = array();
public function __construct($params) { public function __construct($params) {
// The sftp:// scheme has to be manually registered via inclusion of // Register sftp://
// the 'Net/SFTP/Stream.php' file which registers the Net_SFTP_Stream \Net_SFTP_Stream::register();
// stream wrapper as a side effect.
// A slightly better way to register the stream wrapper is available
// since phpseclib 0.3.7 in the form of a static call to
// Net_SFTP_Stream::register() which will trigger autoloading if
// necessary.
// TODO: Call Net_SFTP_Stream::register() instead when phpseclib is
// updated to 0.3.7 or higher.
require_once 'Net/SFTP/Stream.php';
$this->host = $params['host']; $this->host = $params['host'];
$proto = strpos($this->host, '://'); $proto = strpos($this->host, '://');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment