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:
terrafrost 2013-06-10 13:40:54 -07:00
commit 799c8e322f

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;