[TYPO3-core] RFC: URGENT Trouble with bugfix #3362

Bernhard Kraft kraftb at kraftb.at
Fri Jul 28 21:08:25 CEST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael Stucki wrote:

>  		if (strtolower($thisPath) == strtolower($mainPath))	{	// Seems like the requested URL is not case-specific. This may happen on Windows only. -case. Otherwise, redirect to the correct URL. TYPO3_mainDir must be lower-case!!
> -			header('Location: '.str_replace($thisPath_base, $mainPath_base, t3lib_div::getIndpEnv('SCRIPT_NAME')));
> +			$script_name = (php_sapi_name()=='cgi'||php_sapi_name()=='cgi-fcgi')&&($_SERVER['ORIG_PATH_INFO']?$_SERVER['ORIG_PATH_INFO']:$_SERVER['PATH_INFO']) ? ($_SERVER['ORIG_PATH_INFO']?$_SERVER['ORIG_PATH_INFO']:$_SERVER['PATH_INFO']) : ($_SERVER['ORIG_SCRIPT_NAME']?$_SERVER['ORIG_SCRIPT_NAME']:$_SERVER['SCRIPT_NAME']);	// Copied from t3lib_div::getIndpEnv()
> +			header('Location: '.str_replace($thisPath_base, $mainPath_base, $script_name));
>  			exit;

Also +1 from me.


I would add a comment that this is a copy from t3lib_div::getIndpEnv and pherhaps add
a comment in t3lib_div::getIndpDiv at "case 'SCRIPT_NAME':" so when one of them get's
changed the other one does at well.



greets,
Bernhard
- --
- ----------------------------------------------------------------------
"Freiheit ist immer auch die Freiheit des Andersdenkenden"
Rosa Luxemburg, 1871 - 1919
- ----------------------------------------------------------------------
[[ http://think-open.at | Open source company ]]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEymCpIl4dkVkDMFkRAtYeAKCgbsxyh1eq1ZgxxwWfWLFBzuaV+wCfYEnS
pSUjZVzKqKqmKpz54azp5yM=
=RPQN
-----END PGP SIGNATURE-----



More information about the TYPO3-team-core mailing list