Merge pull request #8186 from tersmitten/fatal-error-uncaught-exception-configureexception-27

Expand path before is_file check
This commit is contained in:
Mark Story 2016-02-05 12:34:22 -05:00
commit 76f86b96bb
2 changed files with 2 additions and 2 deletions

View file

@ -102,7 +102,7 @@ class IniReader implements ConfigReaderInterface {
}
$file = $this->_getFilePath($key);
if (!is_file($file)) {
if (!is_file(realpath($file))) {
throw new ConfigureException(__d('cake_dev', 'Could not load configuration file: %s', $file));
}

View file

@ -65,7 +65,7 @@ class PhpReader implements ConfigReaderInterface {
}
$file = $this->_getFilePath($key);
if (!is_file($file)) {
if (!is_file(realpath($file))) {
throw new ConfigureException(__d('cake_dev', 'Could not load configuration file: %s', $file));
}