X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fsymfony%2Fconfig%2FFileLocator.php;fp=vendor%2Fsymfony%2Fconfig%2FFileLocator.php;h=2c9cea047c2a426fb9afe79730438b289558addc;hp=f5593cbbe2550911ddac78dd4818486ea9b49af1;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c 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]) )