Fix http / https check in setup
Summary: There was a last-minute edit to this to fix a typo before rP089d8327 landed which accidentally made it impossible to pass the check. :) Test Plan: Put install into setup mode, changed protocol to 'http', 'ftp'. Reviewed By: cadamo Reviewers: toulouse, codeblock, cadamo Commenters: toulouse, codeblock CC: aran, cadamo, toulouse, codeblock Differential Revision: 434
This commit is contained in:
@@ -132,7 +132,11 @@ class PhabricatorSetup {
|
|||||||
} else {
|
} else {
|
||||||
$host = PhabricatorEnv::getEnvConfig('phabricator.base-uri');
|
$host = PhabricatorEnv::getEnvConfig('phabricator.base-uri');
|
||||||
$protocol = id(new PhutilURI($host))->getProtocol();
|
$protocol = id(new PhutilURI($host))->getProtocol();
|
||||||
if (!($protocol === 'http') || !($protocol === 'https')) {
|
$allowed_protocols = array(
|
||||||
|
'http' => true,
|
||||||
|
'https' => true,
|
||||||
|
);
|
||||||
|
if (empty($allowed_protocols[$protocol])) {
|
||||||
self::writeFailure();
|
self::writeFailure();
|
||||||
self::write(
|
self::write(
|
||||||
"You must specify the protocol over which your host works (e.g.: ".
|
"You must specify the protocol over which your host works (e.g.: ".
|
||||||
|
|||||||
Reference in New Issue
Block a user