Skip to content

Commit

Permalink
Expand path before is_file check
Browse files Browse the repository at this point in the history
To allow symlinks to config files
  • Loading branch information
tersmitten committed Feb 5, 2016
1 parent 8cadb55 commit 5c8c22c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Cake/Configure/IniReader.php
Expand Up @@ -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));
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Configure/PhpReader.php
Expand Up @@ -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));
}

Expand Down

0 comments on commit 5c8c22c

Please sign in to comment.