mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-27 01:02:42 +01:00
parent
129bff016b
commit
cc2225e34c
1 changed files with 0 additions and 8 deletions
|
@ -119,14 +119,6 @@ abstract class AphrontApplicationConfiguration {
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
$path = $request->getPath();
|
$path = $request->getPath();
|
||||||
|
|
||||||
// Check if we should do an HTTP -> HTTPS redirect
|
|
||||||
$base_uri = new PhutilURI(
|
|
||||||
PhabricatorEnv::getEnvConfig('phabricator.base-uri'));
|
|
||||||
if ($base_uri->getProtocol() === 'https' && !$_SERVER['HTTPS']) {
|
|
||||||
$base_uri->setPath($path);
|
|
||||||
return $this->buildRedirectController($base_uri);
|
|
||||||
}
|
|
||||||
|
|
||||||
list($controller, $uri_data) = $this->buildControllerForPath($path);
|
list($controller, $uri_data) = $this->buildControllerForPath($path);
|
||||||
if (!$controller) {
|
if (!$controller) {
|
||||||
if (!preg_match('@/$@', $path)) {
|
if (!preg_match('@/$@', $path)) {
|
||||||
|
|
Loading…
Reference in a new issue