Actions
Bug #17285
closednew RealUrl for IIS feature does not work
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Communication
Target version:
-
Start date:
2007-05-08
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.1
PHP Version:
5.1
Tags:
Complexity:
Is Regression:
Sprint Focus:
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)
Actions