3 abstract class PhabricatorRemarkupHyperlinkEngineExtension
4 extends PhutilRemarkupHyperlinkEngineExtension
{
6 final protected function getSelfLinks(array $hyperlinks) {
7 assert_instances_of($hyperlinks, 'PhutilRemarkupHyperlinkRef');
9 $allowed_protocols = array(
15 foreach ($hyperlinks as $link) {
16 $uri = $link->getURI();
18 if (!PhabricatorEnv
::isSelfURI($uri)) {
22 $protocol = id(new PhutilURI($uri))->getProtocol();
23 if (!isset($allowed_protocols[$protocol])) {