X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fsymfony%2Fconfig%2FFileLocator.php;h=2c9cea047c2a426fb9afe79730438b289558addc;hb=4e1bfbf98b844da83b18aca92ef00f11a4735806;hp=f5593cbbe2550911ddac78dd4818486ea9b49af1;hpb=af6d1fb995500ae68849458ee10d66abbdcfb252;p=yaffs-website diff --git a/vendor/symfony/config/FileLocator.php b/vendor/symfony/config/FileLocator.php index f5593cbbe..2c9cea047 100644 --- a/vendor/symfony/config/FileLocator.php +++ b/vendor/symfony/config/FileLocator.php @@ -57,7 +57,7 @@ class FileLocator implements FileLocatorInterface $filepaths = $notfound = array(); foreach ($paths as $path) { - if (@file_exists($file = $path.DIRECTORY_SEPARATOR.$name)) { + if (@file_exists($file = $path.\DIRECTORY_SEPARATOR.$name)) { if (true === $first) { return $file; } @@ -84,7 +84,7 @@ class FileLocator implements FileLocatorInterface private function isAbsolutePath($file) { if ('/' === $file[0] || '\\' === $file[0] - || (strlen($file) > 3 && ctype_alpha($file[0]) + || (\strlen($file) > 3 && ctype_alpha($file[0]) && ':' === $file[1] && ('\\' === $file[2] || '/' === $file[2]) )