diff --git a/lib/internal/Magento/Framework/View/Element/Template/File/Validator.php b/lib/internal/Magento/Framework/View/Element/Template/File/Validator.php index 285c05c9db69c..7342cea14a095 100644 --- a/lib/internal/Magento/Framework/View/Element/Template/File/Validator.php +++ b/lib/internal/Magento/Framework/View/Element/Template/File/Validator.php @@ -137,6 +137,7 @@ protected function isPathInDirectories($path, $directories) } $realPath = $this->fileDriver->getRealPath($path); foreach ($directories as $directory) { + $directory = $this->fileDriver->getRealPath($directory); if (0 === strpos($realPath, $directory)) { return true; }