Page MenuHomePhabricator

$wgUsePathInfo incorrectly set
Closed, InvalidPublic

Description

Author: boyd

Description:
$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.


Version: 1.4.x
Severity: normal
OS: Linux
Platform: PC

Details

Reference
bz3273

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:48 PM
bzimport set Reference to bz3273.
bzimport added a subscriber: Unknown Object (MLST).

boyd wrote:

In file DefultSettings.php

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.

boyd wrote:

then it just must be me, as i needed to change it. and i am running php as a cgi
mod