#14454suphp and php_sapi_name()
Description
suphp resolves here with “cgi” for the function php_sapi_name(); This is used in t3lib/class.t3lib_div.php
install suphp
call the backend (www.website.my/typo3/index.php)
I did the following to fix it:
t3lib/class.t3lib_div.php
> case ‘SCRIPT_NAME’:
> return php_sapi_name()==‘cgi’ ? $HTTP_SERVER_VARS[‘PATH_INFO’] : $HTTP_SERVER_VARS[‘SCRIPT_NAME’];
> break;
< case ‘SCRIPT_NAME’:
< return ($HTTP_SERVER_VARS[‘SCRIPT_NAME’]) ? $HTTP_SERVER_VARS[‘SCRIPT_NAME’] : $HTTP_SERVER_VARS[‘PATH_INFO’];
< break;
(issue imported from #M617)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.