From b0ee4d559198009794e5aaf30528865ebabc6bb7 Mon Sep 17 00:00:00 2001 From: Vaclav Sir Date: Mon, 10 Jun 2013 21:30:42 +0200 Subject: [PATCH] Net_SFTP_Stream: Use default SFTP port, if not set otherwise. --- phpseclib/Net/SFTP/Stream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Net/SFTP/Stream.php b/phpseclib/Net/SFTP/Stream.php index 23448570..9197f2e8 100644 --- a/phpseclib/Net/SFTP/Stream.php +++ b/phpseclib/Net/SFTP/Stream.php @@ -153,7 +153,7 @@ class Net_SFTP_Stream { */ function _parse_path($path) { - extract(parse_url($path)); + extract(parse_url($path) + array('port' => 22)); if (!isset($host)) { return false;