Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
c640e2fa
Commit
c640e2fa
authored
10 years ago
by
Andreas Fischer
Browse files
Options
Downloads
Patches
Plain Diff
Update phpseclib to version 0.3.9.
parent
c652d307
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/files_external/lib/sftp.php
+2
-10
2 additions, 10 deletions
apps/files_external/lib/sftp.php
with
2 additions
and
10 deletions
apps/files_external/lib/sftp.php
+
2
−
10
View file @
c640e2fa
...
...
@@ -25,16 +25,8 @@ class SFTP extends \OC\Files\Storage\Common {
private
static
$tempFiles
=
array
();
public
function
__construct
(
$params
)
{
// The sftp:// scheme has to be manually registered via inclusion of
// the 'Net/SFTP/Stream.php' file which registers the Net_SFTP_Stream
// 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'
;
// Register sftp://
\Net_SFTP_Stream
::
register
();
$this
->
host
=
$params
[
'host'
];
$proto
=
strpos
(
$this
->
host
,
'://'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment