mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-28 12:10:59 +00:00
Net_SFTP_Stream: Use default SFTP port, if not set otherwise.
This commit is contained in:
parent
d79ce65fe3
commit
b0ee4d5591
@ -153,7 +153,7 @@ class Net_SFTP_Stream {
|
|||||||
*/
|
*/
|
||||||
function _parse_path($path)
|
function _parse_path($path)
|
||||||
{
|
{
|
||||||
extract(parse_url($path));
|
extract(parse_url($path) + array('port' => 22));
|
||||||
|
|
||||||
if (!isset($host)) {
|
if (!isset($host)) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user