Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/view/PhabricatorAuthAccountView.php
| Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | $content[] = phutil_tag( | ||||
| )); | )); | ||||
| $account_uri = $account->getAccountURI(); | $account_uri = $account->getAccountURI(); | ||||
| if (strlen($account_uri)) { | if (strlen($account_uri)) { | ||||
| // Make sure we don't link a "javascript:" URI if a user somehow | // Make sure we don't link a "javascript:" URI if a user somehow | ||||
| // managed to get one here. | // managed to get one here. | ||||
| if (PhabricatorEnv::isValidRemoteWebResource($account_uri)) { | if (PhabricatorEnv::isValidRemoteURIForLink($account_uri)) { | ||||
| $account_uri = phutil_tag( | $account_uri = phutil_tag( | ||||
| 'a', | 'a', | ||||
| array( | array( | ||||
| 'href' => $account_uri, | 'href' => $account_uri, | ||||
| 'target' => '_blank', | 'target' => '_blank', | ||||
| ), | ), | ||||
| $account_uri); | $account_uri); | ||||
| } | } | ||||
| Show All 21 Lines | |||||