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:
parent
e55d4d7aab
commit
e9b7e60533
1 changed files with 2 additions and 1 deletions
|
@ -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.");
|
||||
|
|
Loading…
Reference in a new issue