From ee8aa910b9db2f90bfb46ba852eaa349343d5e04 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 21 Sep 2009 06:44:14 +0000 Subject: Patch #579366 by sun, litwol | chx, Dries: simplified form API redirection handling. I can actually understand it now. ;-). --- modules/openid/openid.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/openid/openid.module') diff --git a/modules/openid/openid.module b/modules/openid/openid.module index 0facb8ebd..61edf053a 100644 --- a/modules/openid/openid.module +++ b/modules/openid/openid.module @@ -445,7 +445,7 @@ function openid_authentication($response) { $_SESSION['openid']['values'] = $form_state['values']; // We'll want to redirect back to the same place. $destination = drupal_get_destination(); - unset($_REQUEST['destination']); + unset($_GET['destination']); drupal_goto('user/register', $destination); } else { @@ -463,7 +463,7 @@ function openid_authentication($response) { // Let other modules act on OpenID login module_invoke_all('openid_response', $response, $account); } - drupal_redirect_form($form, $form_state['redirect']); + drupal_redirect_form($form_state); } else { drupal_set_message(t('Only site administrators can create new user accounts.'), 'error'); -- cgit v1.2.3