function openid_redirect_http
openid_redirect_http($url, $message)
Performs an HTTP 302 redirect (for the 1.x protocol).
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(); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!openid!openid.inc/function/openid_redirect_http/7.x