Skip to content

Commit

Permalink
Merge pull request #24 from coresh/master
Browse files Browse the repository at this point in the history
Update Template.php
  • Loading branch information
colinmollenhour committed Sep 3, 2015
2 parents 8d0e3e6 + acd83da commit 7df012c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Mage/Core/Block/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public function fetchView($fileName)

try {
$includeFilePath = realpath($this->_viewDir . DS . $fileName);
if (strpos($includeFilePath, realpath($this->_viewDir)) === 0 || $this->_getAllowSymlinks()) {
if (file_exists($includeFilePath) && (strpos($includeFilePath, realpath($this->_viewDir)) === 0 || $this->_getAllowSymlinks())) {
include $includeFilePath;
} else {
Mage::log('Not valid template file:'.$fileName, Zend_Log::CRIT, null, null, true);
Expand Down

0 comments on commit 7df012c

Please sign in to comment.