From 5d3c007acc4927d5c8f620f3131e0654bf55081b Mon Sep 17 00:00:00 2001 From: Michael Phillips Date: Sun, 21 May 2017 02:36:05 -0500 Subject: [PATCH] Run intval on SFTP resource. --- src/Ssh/Sftp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ssh/Sftp.php b/src/Ssh/Sftp.php index e19767c..f86a26e 100644 --- a/src/Ssh/Sftp.php +++ b/src/Ssh/Sftp.php @@ -202,7 +202,7 @@ public function send($local, $distant) */ public function getUrl($filename) { - return sprintf('ssh2.sftp://%s/%s', $this->getResource(), $filename); + return sprintf('ssh2.sftp://%s/%s', intval($this->getResource()), $filename); } /**