Author: ybarthelemy
Description:
I investigated PHP_INFO bug with binary CGI. Here are the test case used to patch the code.
I hava installed wiki on the cgi server and modified LocalSettings.php to have URL in pretty format, and set $wgUsePathInfo to
true to bypass the CGI check in DefaultSettings.php.
Provided URL : http://wiki-server/mediawiki_dir/
Expected : http://wiki-server/mediawiki_dir/index.php/Home
Result : http://wiki-server/mediawiki_dir/index.php/mediawiki_dir/index.php
Provided URL : http://wiki-server/mediawiki_dir/index.php
Expected : http://wiki-server/mediawiki_dir/index.php/Home
Result : http://wiki-server/mediawiki_dir/index.php/mediawiki_dir/index.php
Provided URL : http://wiki-server/mediawiki_dir/index.php/
Expected : http://wiki-server/mediawiki_dir/index.php/Home
Result : http://wiki-server/mediawiki_dir/index.php/Home (working)
Provided URL : http://wiki-server/mediawiki_dir/index.php/XXX
Expected : http://wiki-server/mediawiki_dir/index.php/XXX
Result : http://wiki-server/mediawiki_dir/index.php/XXX (working)
I solved it.
I will provide a patch for that as soon I know how to write patch. If needed, I will also prvide a patch to change default
installation settings for CGI.
Version: 1.5.x
Severity: enhancement
OS: Mac OS X 10.0