[Finder] Allow ssh2 stream wrapper for sftp
Same fix as #28604 but for the ss2.sftp wrapper.
This commit is contained in:
parent
297219bad0
commit
e6c9d77b63
|
@ -746,7 +746,7 @@ class Finder implements \IteratorAggregate, \Countable
|
|||
{
|
||||
$dir = rtrim($dir, '/'.\DIRECTORY_SEPARATOR);
|
||||
|
||||
if (preg_match('#^s?ftp://#', $dir)) {
|
||||
if (preg_match('#^(ssh2\.)?s?ftp://#', $dir)) {
|
||||
$dir .= '/';
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue