openid_redirect_http

Versions
6 – 7
openid_redirect_http($url, $message)

Performs an HTTP 302 redirect (for the 1.x protocol).

▾ 1 function calls openid_redirect_http()

openid_begin in modules/openid/openid.module
The initial step of OpenID authentication responsible for the following:

Code

modules/openid/openid.inc, line 28

<?php
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);
  exit;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.