Project

General

Profile

Bug #14692 » bug_1007.diff

Administrator Admin, 2008-04-04 00:23

View differences:

t3lib/class.t3lib_tstemplate.php (Arbeitskopie)
// find
if (strstr($file,'/')) { // here it is manual media
if(!strcmp(substr($file,0,6),'media/')) $file = 'typo3/sysext/cms/tslib/'.$file;
if (@is_file($this->getFileName_backPath.$file)) {
if (!strcmp(substr($file,0,6),'media/')) {
$file = 'typo3/sysext/cms/tslib/'.$file;
}
if (@is_file($this->getFileName_backPath.$file)) {
$outFile = $file;
$fileInfo = t3lib_div::split_fileref($outFile);
reset($this->allowedPaths);
$OK=0;
while(list(,$val)=each($this->allowedPaths)) {
if (substr($fileInfo['path'],0,strlen($val))==$val){$OK=1; break;}
$OK = 0;
foreach ($this->allowedPaths as $val) {
if (substr($fileInfo['path'],0,strlen($val))==$val) {
$OK = 1;
break;
}
}
if ($OK) {
$this->fileCache[$hash]=$outFile;
$this->fileCache[$hash] = $outFile;
return $outFile;
} elseif ($this->tt_track) $GLOBALS['TT']->setTSlogMessage('"'.$file.'" was not located in the allowed paths: ('.implode(',',$this->allowedPaths).')',3);
} elseif ($this->tt_track) $GLOBALS['TT']->setTSlogMessage('"'.$this->getFileName_backPath.$file.'" is not a file (non-uploads/.. resource, did not exist).',3);
typo3/sysext/cms/tslib/class.tslib_fe.php (Arbeitskopie)
$this->tmpl = t3lib_div::makeInstance('t3lib_TStemplate');
$this->tmpl->init();
$this->tmpl->tt_track= $this->beUserLogin ? 1 : 0;
$this->tmpl->getFileName_backPath = PATH_site;
}
/**
typo3/sysext/cms/tslib/pagegen.php (Arbeitskopie)
$temp_incFiles=TSpagegen::getIncFiles();
reset($temp_incFiles);
while(list(,$temp_file)=each($temp_incFiles)) {
include_once('./'.$temp_file);
include_once(PATH_site.$temp_file);
}
(1-1/2)