diff --git a/Mage/Core/Block/Template.php b/Mage/Core/Block/Template.php index c27e640..505702a 100644 --- a/Mage/Core/Block/Template.php +++ b/Mage/Core/Block/Template.php @@ -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);