Skip to content

Commit

Permalink
[Finder] Allow ssh2 stream wrapper for sftp
Browse files Browse the repository at this point in the history
Same fix as #28604 but for the ss2.sftp wrapper.
  • Loading branch information
damienalexandre committed Nov 15, 2019
1 parent 297219b commit e6c9d77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Finder/Finder.php
Expand Up @@ -746,7 +746,7 @@ private function normalizeDir($dir)
{
$dir = rtrim($dir, '/'.\DIRECTORY_SEPARATOR);

if (preg_match('#^s?ftp://#', $dir)) {
if (preg_match('#^(ssh2\.)?s?ftp://#', $dir)) {
$dir .= '/';
}

Expand Down

0 comments on commit e6c9d77

Please sign in to comment.