Skip to content

Commit 13fb80e

Browse files
Chluzthomas-pike
authored andcommitted
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 a1bb189 commit 13fb80e

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)