Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/option/PhabricatorSecurityConfigOptions.php
Show All 14 Lines | public function getFontIcon() { | ||||
return 'fa-lock'; | return 'fa-lock'; | ||||
} | } | ||||
public function getGroup() { | public function getGroup() { | ||||
return 'core'; | return 'core'; | ||||
} | } | ||||
public function getOptions() { | public function getOptions() { | ||||
$support_href = PhabricatorEnv::getDoclink('Give Feedback! Get Support!'); | |||||
$doc_href = PhabricatorEnv::getDoclink('Configuring a File Domain'); | $doc_href = PhabricatorEnv::getDoclink('Configuring a File Domain'); | ||||
$doc_name = pht('Configuration Guide: Configuring a File Domain'); | $doc_name = pht('Configuration Guide: Configuring a File Domain'); | ||||
// This is all of the IANA special/reserved blocks in IPv4 space. | // This is all of the IANA special/reserved blocks in IPv4 space. | ||||
$default_address_blacklist = array( | $default_address_blacklist = array( | ||||
'0.0.0.0/8', | '0.0.0.0/8', | ||||
'10.0.0.0/8', | '10.0.0.0/8', | ||||
'100.64.0.0/10', | '100.64.0.0/10', | ||||
▲ Show 20 Lines • Show All 159 Lines • ▼ Show 20 Lines | return array( | ||||
// This isn't a standard handler installed by an application, but | // This isn't a standard handler installed by an application, but | ||||
// is a reasonable name for a user-installed handler. | // is a reasonable name for a user-installed handler. | ||||
'editor' => true, | 'editor' => true, | ||||
)) | )) | ||||
->setSummary(pht('Whitelists editor protocols for "Open in Editor".')) | ->setSummary(pht('Whitelists editor protocols for "Open in Editor".')) | ||||
->setDescription( | ->setDescription( | ||||
pht( | pht( | ||||
"Users can configure a URI pattern to open files in a text ". | 'Users can configure a URI pattern to open files in a text '. | ||||
"editor. The URI must use a protocol on this whitelist.\n\n". | 'editor. The URI must use a protocol on this whitelist.')) | ||||
"(If you use an editor which defines a protocol not on this ". | |||||
"list, [[ %s | let us know ]] and we'll update the defaults.)", | |||||
$support_href)) | |||||
->setLocked(true), | ->setLocked(true), | ||||
$this->newOption( | $this->newOption( | ||||
'celerity.resource-hash', | 'celerity.resource-hash', | ||||
'string', | 'string', | ||||
'd9455ea150622ee044f7931dabfa52aa') | 'd9455ea150622ee044f7931dabfa52aa') | ||||
->setSummary( | ->setSummary( | ||||
pht('An input to the hash function when building resource hashes.')) | pht('An input to the hash function when building resource hashes.')) | ||||
->setDescription( | ->setDescription( | ||||
▲ Show 20 Lines • Show All 118 Lines • Show Last 20 Lines |