Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/view/PhabricatorAuthAccountView.php
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | $content[] = phutil_tag( | ||||
array( | array( | ||||
'class' => 'auth-account-view-provider-name', | 'class' => 'auth-account-view-provider-name', | ||||
), | ), | ||||
array( | array( | ||||
$prov_name, | $prov_name, | ||||
)); | )); | ||||
$account_uri = $account->getAccountURI(); | $account_uri = $account->getAccountURI(); | ||||
if (strlen($account_uri)) { | if (phutil_nonempty_string($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::isValidRemoteURIForLink($account_uri)) { | if (PhabricatorEnv::isValidRemoteURIForLink($account_uri)) { | ||||
$account_uri = phutil_tag( | $account_uri = phutil_tag( | ||||
'a', | 'a', | ||||
array( | array( | ||||
Show All 40 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