Issue Bug Closed

#14454suphp and php_sapi_name()

old_GerbenVersluis 12/16/04, 16:01 updated 09/08/06, 15:09

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.