Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7c220f2

Browse files
authored
changed arguments for ssh2.sftp
Bugfix for newer versions of PHP such as PHP 7.0.32-0ubuntu0.16.04.1 The problem was caused by the bug listed here https://bugs.php.net/bug.php?id=73597
1 parent 42ff27c commit 7c220f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎scripts/sync.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ function sync_server($id, $only_username = null, $preview = false) {
410410
if(is_null($only_username) || $username == $only_username) {
411411
try {
412412
$remote_filename = "$keydir/$username";
413-
$remote_entity = "ssh2.sftp://$sftp$remote_filename";
413+
$remote_entity = "ssh2.sftp://" . intval($sftp) . $remote_filename;
414414
$create = true;
415415
if($keyfile['check']) {
416416
$stream = ssh2_exec($connection, 'id '.escapeshellarg($username));

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /