diff --git a/src/Symfony/Bundle/FrameworkBundle/Util/Filesystem.php b/src/Symfony/Bundle/FrameworkBundle/Util/Filesystem.php index 9000af50c6..82f91b48de 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Util/Filesystem.php +++ b/src/Symfony/Bundle/FrameworkBundle/Util/Filesystem.php @@ -212,7 +212,7 @@ class Filesystem } foreach ($iterator as $file) { - $target = $targetDir.'/'.str_replace($originDir.'/', '', $file->getPathname()); + $target = $targetDir.'/'.str_replace($originDir.DIRECTORY_SEPARATOR, '', $file->getPathname()); if (is_dir($file)) { $this->mkdirs($target);