Issue Bug Closed

#25985remove obsolete check for dir media/scripts/ in Function tslib_fe::checkFileInclude

Patrick Rodacker 04/15/11, 14:24 updated 10/02/18, 12:20

Description

One of the path checks of the function tslib_fe::checkFileInclude checks if the includefile is within the path media/scripts/ which is obsolete:

function checkFileInclude($incFile)    {
    return !$this->TYPO3_CONF_VARS['FE']['noPHPscriptInclude']
        || substr($incFile,0,14)=='media/scripts/'
        || substr($incFile,0,4+strlen(TYPO3_mainDir))==TYPO3_mainDir.'ext/'
        || substr($incFile,0,7+strlen(TYPO3_mainDir))==TYPO3_mainDir.'sysext/'
        || substr($incFile,0,14)=='typo3conf/ext/';
}

Reviews 1