1
0
mirror of https://github.com/danog/tgseclib.git synced 2024-11-27 12:44:38 +01:00

Net_SFTP_Stream: Use default SFTP port, if not set otherwise.

This commit is contained in:
Vaclav Sir 2013-06-10 21:30:42 +02:00
parent d79ce65fe3
commit b0ee4d5591

View File

@ -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;