|
@@ -168,8 +168,9 @@ class ReinstallSourceBase extends SourcePluginBase implements ContainerFactoryPl
|
|
|
$bundle = $configuration['bundle'];
|
|
|
$baseFilePath = "${type}/${bundle}.yml";
|
|
|
$importPath = $configuration['importPath'] ?? NULL;
|
|
|
- $filePath = realpath("$importPath/$baseFilePath");
|
|
|
- if (!is_file($filePath) || !is_readable($filePath)) {
|
|
|
+ $filePath = "$importPath/$baseFilePath";
|
|
|
+ $realPath = realpath($filePath);
|
|
|
+ if (!is_file($realPath) || !is_readable($realPath)) {
|
|
|
throw new MigrateException("${filePath} is not a readable file.");
|
|
|
}
|
|
|
|