Project

General

Profile

Actions

Bug #63896

closed

class.tslib_fe: Call to a member function getUrlToCurrentLocation() after Update to TYPO3 4.5.39

Added by König David over 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-12-15
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

In a Multidomain TYPO3 we have the folowing Error:

Fatal error: Call to a member function getUrlToCurrentLocation() on a non-object in [..]/typo3_src-4.5.39/typo3/sysext/cms/tslib/class.tslib_fe.php on line 4408

On non Multidomain Installation we dont have this Problem.
Also it Ocures not if you are loggedin in Backend, or the first time after clearing cache.

The Securty-Fix has the folowing changes:

From:

$scriptPath = $GLOBALS['TSFE']->absRefPrefix . substr(t3lib_div::getIndpEnv('TYPO3_REQUEST_URL'),strlen(t3lib_div::getIndpEnv('TYPO3_SITE_URL')));        

To:

if (!$this->beUserLogin) {
    $scriptPath = $this->cObj->getUrlToCurrentLocation();
} else {
    // To break less existing sites, we allow the REQUEST_URI to be used for the prefix
    $scriptPath = t3lib_div::getIndpEnv('REQUEST_URI');
    // Disable the cache so that these URI will not be the ones to be cached
    $this->disableCache();
}

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #62723: Cache poisoning with prefixLocalAchorsClosed2014-11-05

Actions
Has duplicate TYPO3 Core - Bug #64252: prefixLocalAnchors broken by call to member function on a non-objectClosed2015-01-12

Actions
Actions

Also available in: Atom PDF