Last modified: 2010-05-15 15:33:02 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T5273, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 3273 - $wgUsePathInfo incorrectly set
$wgUsePathInfo incorrectly set
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
User preferences (Other open bugs)
1.4.x
PC Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-08-26 01:06 UTC by Boyd Pearson
Modified: 2010-05-15 15:33 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Boyd Pearson 2005-08-26 01:06:55 UTC
$wgUsePathInfo		= ( strpos( php_sapi_name(), 'cgi' ) === false );

shouldent that be:

$wgUsePathInfo		= ( strpos( php_sapi_name(), 'cgi' ) === true );

so that index.php/Main_Page etc works, else it wont.
Comment 1 Boyd Pearson 2005-08-26 01:09:12 UTC
In file DefultSettings.php
Comment 2 Brion Vibber 2005-08-26 02:00:31 UTC
No, that is designed to return false for PHP CGI configurations which are known to 
usually fail drastically with PATH_INFO in use, while mod_php configurations (the 
recommended way) are known to work.

The test works as intended, and reversing it would produce exactly the wrong result 
in probably 99% of cases.
Comment 3 Boyd Pearson 2005-08-26 20:11:40 UTC
then it just must be me, as i needed to change it. and i am running php as a cgi
mod 

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links