Bug #18022 ยป class.t3lib_div.diff
class.t3lib_div_new.php 2010-04-13 16:35:42.000000000 +0200 | ||
---|---|---|
break;
|
||
case 'TYPO3_SITE_SCRIPT':
|
||
$retVal = substr(self::getIndpEnv('TYPO3_REQUEST_URL'),strlen(self::getIndpEnv('TYPO3_SITE_URL')));
|
||
break;
|
||
case 'TYPO3_SSL':
|
||
case 'TYPO3_SSL':
|
||
// HTTPS headers SSL concentrator detection
|
||
$headers = apache_request_headers();
|
||
if (isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['SSLHeaderName'])) $sslHeaderName = trim($GLOBALS['TYPO3_CONF_VARS']['SYS']['SSLHeaderName']);
|
||
if (isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['SSLHeaderValue'])) $sslHeaderValue = trim($GLOBALS['TYPO3_CONF_VARS']['SYS']['SSLHeaderValue']);
|
||
$proxySSL = trim($GLOBALS['TYPO3_CONF_VARS']['SYS']['reverseProxySSL']);
|
||
if ($proxySSL == '*') {
|
||
$proxySSL = $GLOBALS['TYPO3_CONF_VARS']['SYS']['reverseProxyIP'];
|
||
}
|
||
if (self::cmpIP($_SERVER['REMOTE_ADDR'], $proxySSL)) {
|
||
$retVal = true;
|
||
} else {
|
||
$retVal = true;
|
||
} elseif (isset($sslHeaderName) && $sslHeaderName !== '' && isset($headers[$sslHeaderName])) {
|
||
if (isset($sslHeaderValue) && $sslHeaderValue !== '' && trim($headers[$sslHeaderName]) === $sslHeaderValue) {
|
||
$retVal = true;
|
||
} elseif (isset($sslHeaderValue) && $sslHeaderValue === '' ) {
|
||
$retVal = true;
|
||
}
|
||
} else {
|
||
$retVal = $_SERVER['SSL_SESSION_ID'] || !strcasecmp($_SERVER['HTTPS'], 'on') || !strcmp($_SERVER['HTTPS'], '1') ? true : false; // see http://bugs.typo3.org/view.php?id=3909
|
||
}
|
||
break;
|
||
case '_ARRAY':
|
||
$out = array();
|