Project

General

Profile

Bug #20920 ยป 11778.diff

Administrator Admin, 2009-08-24 17:19

View differences:

typo3/sysext/cms/tslib/class.tslib_fe.php (working copy)
// Resolving of "simulateStaticDocuments" URLs:
if ($this->siteScript && substr($this->siteScript,0,9)!='index.php') { // If there has been a redirect (basically; we arrived here otherwise than via "index.php" in the URL) this can happend either due to a CGI-script or because of reWrite rule. Earlier we used $_SERVER['REDIRECT_URL'] to check but
$uParts = parse_url($this->siteScript); // Parse the path:
$uParts = parse_url(t3lib_div::getIndpEnv('TYPO3_SITE_URL') . $this->siteScript); // Parse the path:
$fI = t3lib_div::split_fileref($uParts['path']);
if (!$fI['path'] && $fI['file'] && substr($fI['file'],-5)=='.html') {
    (1-1/1)