Changeset View
Changeset View
Standalone View
Standalone View
src/aphront/AphrontRequest.php
| Show First 20 Lines • Show All 351 Lines • ▼ Show 20 Lines | if (!$base_domain_uri) { | ||||
| $configured_as = PhabricatorEnv::getEnvConfig('phabricator.base-uri'); | $configured_as = PhabricatorEnv::getEnvConfig('phabricator.base-uri'); | ||||
| $accessed_as = $this->getHost(); | $accessed_as = $this->getHost(); | ||||
| throw new Exception( | throw new Exception( | ||||
| pht( | pht( | ||||
| 'This Phabricator install is configured as "%s", but you are '. | 'This Phabricator install is configured as "%s", but you are '. | ||||
| 'using the domain name "%s" to access a page which is trying to '. | 'using the domain name "%s" to access a page which is trying to '. | ||||
| 'set a cookie. Acccess Phabricator on the configured primary '. | 'set a cookie. Acccess Phabricator on the configured primary '. | ||||
| 'domain or a configured alternate domain. Phabricator will not '. | 'domain or a configured alternate domain. Phabricator will not '. | ||||
| 'set cookies on other domains for security reasons.', | 'set cookies on other domains for security reasons.', | ||||
| $configured_as, | $configured_as, | ||||
| $accessed_as)); | $accessed_as)); | ||||
| } | } | ||||
| $base_domain = $base_domain_uri->getDomain(); | $base_domain = $base_domain_uri->getDomain(); | ||||
| $is_secure = ($base_domain_uri->getProtocol() == 'https'); | $is_secure = ($base_domain_uri->getProtocol() == 'https'); | ||||
| ▲ Show 20 Lines • Show All 170 Lines • Show Last 20 Lines | |||||