function _openid_normalize_xri

6.x openid.inc _openid_normalize_xri($xri)
1 call to _openid_normalize_xri()
_openid_normalize in drupal-6.x/modules/openid/openid.inc
Normalize the given identifier as per spec.

File

drupal-6.x/modules/openid/openid.inc, line 102
OpenID utility functions.

Code

function _openid_normalize_xri($xri) {
  $normalized_xri = $xri;
  if (stristr($xri, 'xri://') !== FALSE) {
    $normalized_xri = substr($xri, 6);
  }
  return $normalized_xri;
}