Project

General

Profile

Bug #21529 ยป lockSSLPort.diff

Administrator Admin, 2009-11-11 10:04

View differences:

t3lib/class.t3lib_userauth.php (working copy)
if($requestStr == $backendScript && t3lib_div::getIndpEnv('TYPO3_SSL')) {
list(,$url) = explode('://',t3lib_div::getIndpEnv('TYPO3_SITE_URL'),2);
list($server,$address) = explode('/',$url,2);
if (intval($TYPO3_CONF_VARS['BE']['lockSSLPort'])) {
$sslPortSuffix = ':'.intval($TYPO3_CONF_VARS['BE']['lockSSLPort']);
if (intval($GLOBALS['TYPO3_CONF_VARS']['BE']['lockSSLPort'])) {
$sslPortSuffix = ':'.intval($GLOBALS['TYPO3_CONF_VARS']['BE']['lockSSLPort']);
$server = str_replace($sslPortSuffix,'',$server); // strip port from server
}
header('Location: http://'.$server.'/'.$address.TYPO3_mainDir.$backendScript);
    (1-1/1)