MantisBT: master ce27f552

Author Committer Branch Timestamp Parent
dhx dhx master 2009-07-10 19:39 master 55e48e0e
Affected Issues  0005753: CGI PHP (with FCGI) with EMPTY PHP_SELF
Changeset

Use SCRIPT_NAME instead of PHP_SELF

$_SERVER['SCRIPT_NAME'] does a similar thing to $_SERVER['PHP_SELF']
except it is defined in the CGI standard. Many web servers, by defualt,
don't expose PHP_SELF when using CGI/FastCGI. They do expose
SCRIPT_NAME, so this is a better choice to use.

See:
http://hoohoo.ncsa.illinois.edu/cgi/env.html
http://www.php.net/manual/en/reserved.variables.server.php
http://php.about.com/od/learnphp/qt/_SERVER_PHP.htm

mod - core/html_api.php Diff File
mod - core.php Diff File
mod - config_defaults_inc.php Diff File
mod - core/access_api.php Diff File
mod - core/authentication_api.php Diff File
mod - manage_config_email_page.php Diff File
mod - manage_config_workflow_page.php Diff File
mod - core/database_api.php Diff File
mod - admin/test_email.php Diff File
mod - manage_config_work_threshold_page.php Diff File
mod - api/soap/mantisconnect.php Diff File
mod - core/utility_api.php Diff File