Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/check/PhabricatorBaseURISetupCheck.php
Context not available. | |||||
$base_uri = PhabricatorEnv::getEnvConfig('phabricator.base-uri'); | $base_uri = PhabricatorEnv::getEnvConfig('phabricator.base-uri'); | ||||
$host_header = AphrontRequest::getHTTPHeader('Host'); | $host_header = AphrontRequest::getHTTPHeader('Host'); | ||||
if (strpos($host_header, '.') === false) { | if (@strpos($host_header, '.') === false) { | ||||
if (!strlen(trim($host_header))) { | if (!@strlen(trim($host_header))) { | ||||
$name = pht('No "Host" Header'); | $name = pht('No "Host" Header'); | ||||
$summary = pht('No "Host" header present in request.'); | $summary = pht('No "Host" header present in request.'); | ||||
$message = pht( | $message = pht( | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0