[TYPO3-core] RFC #15246: Use t3lib_div::getIndpEnv('SCRIPT_FILENAME') to determine PATH_thisScript
Nikolas Hagelstein
lists at shr.cc
Tue Jul 27 14:30:03 CEST 2010
Hi,
Am 27.07.2010 13:34, schrieb Dmitry Dulepov:
> I made a quick search and discovered that this change may break script path
> detection. Here is what I found quickly.
>
> SCRIPT_FILENAME is non–standard. CGI spec [1] does not have this variable,
> so it is possible that your solution will not work in cgi mode.
Yes you are right.
But, all this patch does is removing/replacing redundant code.
In fact t3lib_div::getIndpEnv('SCRIPT_FILENAME') does exactly the same
than the code i removed/replaced.
Please see t3lib_div line 3933:
---
case 'SCRIPT_FILENAME':
$retVal = str_replace('//','/', str_replace('\\','/', (PHP.....
---
Cheers,
nikolas
More information about the TYPO3-team-core
mailing list