[Finder] Allow ssh2 stream wrapper for sftp

Same fix as #28604 but for the ss2.sftp wrapper.
This commit is contained in:
Damien Alexandre 2019-11-15 15:28:29 +01:00 committed by GitHub
parent 297219bad0
commit e6c9d77b63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 .= '/';
}