Skip to content
Permalink
Browse files

Remove ability to use arbitrary view templates paths.

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 f2ef634b173397ff0e59b267de7f7767d117c241
Showing with 0 additions and 3 deletions.
  1. +0 −3 cake/libs/view/view.php
@@ -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);

0 comments on commit f2ef634

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