Issue Bug Closed

#17285new RealUrl for IIS feature does not work

Karl-Ernst Kiel 05/08/07, 12:03 updated 06/27/08, 10:51

Description

In Version 4.1 there was a change in class.t3lib_div.php function getIndpEnv to enable using RealUrl on IIS e.g. with ISAPIrewrite.
To get this working you have to define
$TYPO3_CONF_VARS[‘SYS’][‘requestURIvar’] = ‘_SERVER|HTTP_X_REWRITE_URL’;
in localconf.php.
Unfortunately the source code in class.t3lib_div.php refers to $GLOBALS[‘TYPO3_CONF_VAR’][‘SYS’][‘requestURIvar’] instead of
$GLOBALS[‘TYPO3_CONF_VARS’][‘SYS’][‘requestURIvar’] – so it´t does not work witout changing this.

Sorry – I´m currently not able to provide a diff file, so here is it in plain text:

OLD CODE (line 3090 in class.t3lib_div.php of version 4.1.1, function linkThisUrl):

case ‘REQUEST_URI’:
// Typical application of REQUEST_URI is return urls, forms submitting to itself etc. Example: returnUrl=’.rawurlencode(t3lib_div::getIndpEnv(‘REQUEST_URI’))
if ($GLOBALS[‘TYPO3_CONF_VAR’][‘SYS’][‘requestURIvar’]) { // This is for URL rewriters that store the original URI in a server variable (eg ISAPI_Rewriter for IIS: HTTP_X_REWRITE_URL)
list($v,$n) = explode(‘|’,$GLOBALS[‘TYPO3_CONF_VAR’][‘SYS’][‘requestURIvar’]);
$retVal = $GLOBALS[$v][$n];

should be:

case ‘REQUEST_URI’:
// Typical application of REQUEST_URI is return urls, forms submitting to itself etc. Example: returnUrl=’.rawurlencode(t3lib_div::getIndpEnv(‘REQUEST_URI’))
if ($GLOBALS[‘TYPO3_CONF_VARS’][‘SYS’][‘requestURIvar’]) { // This is for URL rewriters that store the original URI in a server variable (eg ISAPI_Rewriter for IIS: HTTP_X_REWRITE_URL)
list($v,$n) = explode(‘|’,$GLOBALS[‘TYPO3_CONF_VARS’][‘SYS’][‘requestURIvar’]);
$retVal = $GLOBALS[$v][$n];
(issue imported from #M5578)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.