[TYPO3-core] RFC: bug #2871 [was: Re: For version 4.0.1]

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Thu Jun 1 10:56:10 CEST 2006


Karsten Dambekalns schrieb:
> Hi.
> 
> On Monday 08 May 2006 22:04, Martin Kutschker wrote:
> 
>>>http://bugs.typo3.org/view.php?id=2871
> 
>  ...
> 
>>Is this in now?
> 
> 
> No. I assigned the bug to me now. Attached is a patch created from the 
> description in the bug report.

Don't check for CLI mode. Simply do the str_replace as it is done for 
PATH_thisScript a few lines above:

define('PATH_thisScript',str_replace('//','/', str_replace('\\','/', 
(php_sapi_name()=='cgi'||php_sapi_name()=='isapi' 
||php_sapi_name()=='cgi-fcgi')&&($_SERVER['ORIG_PATH_TRANSLATED']?$_SERVER['ORIG_PATH_TRANSLATED']:$_SERVER['PATH_TRANSLATED'])? 
($_SERVER['ORIG_PATH_TRANSLATED']?$_SERVER['ORIG_PATH_TRANSLATED']:$_SERVER['PATH_TRANSLATED']):($_SERVER['ORIG_SCRIPT_FILENAME']?$_SERVER['ORIG_SCRIPT_FILENAME']:$_SERVER['SCRIPT_FILENAME']))));

Masi



More information about the TYPO3-team-core mailing list