1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 00:42:41 +01:00

Fixed PHP backward incompatibility.

This commit is contained in:
Grigory 2012-07-25 18:19:07 +04:00
parent e55d4d7aab
commit e9b7e60533

View file

@ -57,7 +57,8 @@ if (!$env) {
if (!isset($_REQUEST['__path__'])) {
if (php_sapi_name() == 'cli-server') {
// Compatibility with PHP 5.4+ built-in web server.
$_REQUEST['__path__'] = parse_url( $_SERVER['REQUEST_URI'] )[ 'path' ];
$url = parse_url($_SERVER['REQUEST_URI']);
$_REQUEST['__path__'] = $url['path'];
} else {
phabricator_fatal_config_error(
"__path__ is not set. Your rewrite rules are not configured correctly.");