mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-17 02:35:10 +00:00
Merge pull request #119 from VaclavSir/sftp_default_port
Net_SFTP_Stream: Use default SFTP port, if no port specified
This commit is contained in:
commit
799c8e322f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user