Project

General

Profile

Bug #25366 ยป class.tslib_content.php.patch

Administrator Admin, 2011-03-21 16:13

View differences:

class.tslib_content.php (working copy)
}
// If no domain records are defined, use current domain:
if ($targetDomain === '' && $conf['forceAbsoluteUrl'] ||
$absoluteUrlScheme !== parse_url(t3lib_div::getIndpEnv('TYPO3_REQUEST_URL'), PHP_URL_SCHEME)) {
$targetDomain = $currentDomain;
//additional brackets for correcting operator predecence && -> ||; otherwise the currentdomain is always taken if the url_scheme differs
if ($targetDomain === '' && ($conf['forceAbsoluteUrl'] ||
$absoluteUrlScheme !== parse_url(t3lib_div::getIndpEnv('TYPO3_REQUEST_URL'), PHP_URL_SCHEME))) {
$targetDomain = $currentDomain;
}
}
    (1-1/1)