Project

General

Profile

Bug #34698 ยป class.t3lib_befunc.php.patch

Thomas Layh, 2012-03-09 18:20

View differences:

t3lib/class.t3lib_befunc.php
if ($page['url_scheme'] == t3lib_utility_Http::SCHEME_HTTPS || ($page['url_scheme'] == 0 && t3lib_div::getIndpEnv('TYPO3_SSL'))) {
$protocol = 'https';
}
$domainRecord = self::getDomainStartPage($urlParts['host'], $urlParts['path']);
if ($domainRecord && isset($domainRecord['domainName'])) {
$domain = $domainRecord['domainName'];
$domainName = self::firstDomainRecord($rootLine);
if ($domainName) {
$domain = $domainName;
} else {
$domain = self::firstDomainRecord($rootLine);
$domainRecord = self::getDomainStartPage($urlParts['host'], $urlParts['path']);
$domain = $domainRecord['domainName'];
}
if ($domain) {
    (1-1/1)