Skip to content
Permalink
Browse files

Expand path before is_file check

To allow symlinks to config files
  • Loading branch information...
tersmitten committed Feb 5, 2016
1 parent 8cadb55 commit 5c8c22cf194e5240d50ca9ec5f4ef831858d4bcb
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/Cake/Configure/IniReader.php
  2. +1 −1 lib/Cake/Configure/PhpReader.php
@@ -102,7 +102,7 @@ public function read($key) {
}
$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));
}
@@ -65,7 +65,7 @@ public function read($key) {
}
$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));
}

0 comments on commit 5c8c22c

Please sign in to comment.
You can’t perform that action at this time.