function openid_redirect_http in Drupal 7
Same name and namespace in other branches
- 6 modules/openid/openid.inc \openid_redirect_http()
Performs an HTTP 302 redirect (for the 1.x protocol).
1 call to openid_redirect_http()
- openid_begin in modules/
openid/ openid.module - The initial step of OpenID authentication responsible for the following:
File
- modules/
openid/ openid.inc, line 75 - OpenID utility functions.
Code
function openid_redirect_http($url, $message) {
$query = array();
foreach ($message as $key => $val) {
$query[] = $key . '=' . urlencode($val);
}
$sep = strpos($url, '?') === FALSE ? '?' : '&';
header('Location: ' . $url . $sep . implode('&', $query), TRUE, 302);
drupal_exit();
}