Skip to content

Commit

Permalink
Remove ability to use arbitrary view templates paths.
Browse files Browse the repository at this point in the history
View templates should only be loadable from within the configured
template paths. Allowing any file path causes issues when users can
define the template to be loaded.
  • Loading branch information
markstory committed Oct 31, 2015
1 parent df192c5 commit f2ef634
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cake/libs/view/view.php
Expand Up @@ -857,9 +857,6 @@ function _getViewFileName($name = null) {
$name = $this->viewPath . DS . $subDir . Inflector::underscore($name);
} elseif (strpos($name, DS) !== false) {
if ($name{0} === DS || $name{1} === ':') {
if (is_file($name)) {
return $name;
}
$name = trim($name, DS);
} else if ($name[0] === '.') {
$name = substr($name, 3);
Expand Down

0 comments on commit f2ef634

Please sign in to comment.