Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/env/PhabricatorEnv.php
Show First 20 Lines • Show All 427 Lines • ▼ Show 20 Lines | /* -( Reading Configuration )---------------------------------------------- */ | ||||
} | } | ||||
public static function isSelfURI($raw_uri) { | public static function isSelfURI($raw_uri) { | ||||
$uri = new PhutilURI($raw_uri); | $uri = new PhutilURI($raw_uri); | ||||
$host = $uri->getDomain(); | $host = $uri->getDomain(); | ||||
if (!phutil_nonempty_string($host)) { | if (!phutil_nonempty_string($host)) { | ||||
return false; | return true; | ||||
} | } | ||||
$host = phutil_utf8_strtolower($host); | $host = phutil_utf8_strtolower($host); | ||||
$self_map = self::getSelfURIMap(); | $self_map = self::getSelfURIMap(); | ||||
return isset($self_map[$host]); | return isset($self_map[$host]); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 546 Lines • Show Last 20 Lines |
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