Author: ybarthelemy
Description:
cgi was detected in php_sapi_name() and MediaWiki prevented my host to use it, resulting in infinite loop.
The story follows : I have set up MediaWiki in local and have made a script using MediaWiki. This script uses the cool URLs :
http://server/index.php/Article. When I finished, I upload all that on my web hosting service, I re-configured MediaWiki on that
server, and my script links were redirected on home of MediaWiki, with an ugly URL.
So, I checked LocalSettings and saw : $wgArticlePath = "$wgScript?title=$1";
I changed it to $wgArticlePath = "$wgScript/$1"; in the hope my URI would worked (I was very optimitic, since it is a string
modification, and not a TRUE/FALSE modification... And, it didn't worked, it does infinite redirection instead of just displaying the
article.
The 'error' is first to assume that if php_sapi_name() returns something with CGI, PATH_INFO can't work. This is false, in absolute.
A possible workaround is to add this option in LocalSettings with a comment about that. An other way is to find an other way to
check the support of path_info. An other way is to modify WebRequest to ignore wgUsePathInfo (but please don't do that, since
it's crap...)
Version: 1.4.x
Severity: normal