From 0e7e380e0c245f6fd075c334e89b55752c9d25ac Mon Sep 17 00:00:00 2001 From: Daniel Fahlke Date: Wed, 10 Apr 2019 20:39:01 +0200 Subject: [PATCH] ensure both sides of the comparison use the same directory separator current implementation did cause Issues in a Windows environment --- .../Magento/Framework/View/Element/Template/File/Validator.php | 1 + 1 file changed, 1 insertion(+) 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; }