Fixed bug #5578: config setting SYS[requestURIvar] doesn't work
authorMartin Kutschker <martin.t.kutschker@blackbox.net>
Fri, 18 May 2007 14:18:36 +0000 (14:18 +0000)
committerMartin Kutschker <martin.t.kutschker@blackbox.net>
Fri, 18 May 2007 14:18:36 +0000 (14:18 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2341 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_div.php

index 4787446..133a500 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
 
        * Fixed bug #5645: Missing Slovenian flag
        * Fixed bug #5628: Missing Slovak flag
+       * Fixed bug #5578: config setting SYS[requestURIvar] doesn't work
 
 2007-05-17 Andreas Otto <andreas.otto@dkd.de>
        * Feature request: If TYPO3 is configured to send a notification email about install tool logins this email discloses the used password if the login fails. Since this behaviour might not be wanted only the last 5 characters of the md5 hash of the used password are disclosed.
index 4c96366..0f4255e 100755 (executable)
@@ -3121,8 +3121,8 @@ class t3lib_div {
                        break;
                        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']);
+                               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];
                                } elseif (!$_SERVER['REQUEST_URI'])     {       // This is for ISS/CGI which does not have the REQUEST_URI available.
                                        $retVal = '/'.ereg_replace('^/','',t3lib_div::getIndpEnv('SCRIPT_NAME')).