diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-10-13 21:16:44 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-10-13 21:16:44 +0000 |
commit | 24c259cdd87e747187aecf94dc1f1834e7602adf (patch) | |
tree | 807f9e82346dcf8d397ef9756ef049ff1c1b2d93 /modules/openid | |
parent | 3257ebf6606c4ab7c56acb012be95075eb67fbda (diff) | |
download | brdo-24c259cdd87e747187aecf94dc1f1834e7602adf.tar.gz brdo-24c259cdd87e747187aecf94dc1f1834e7602adf.tar.bz2 |
- Patch #601570 by effulgentsia: hook_exit() and other cleanup needs to happen for AJAX requests too.
Diffstat (limited to 'modules/openid')
-rw-r--r-- | modules/openid/openid.inc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/modules/openid/openid.inc b/modules/openid/openid.inc index bb90596a5..ef923c97e 100644 --- a/modules/openid/openid.inc +++ b/modules/openid/openid.inc @@ -62,10 +62,7 @@ function openid_redirect_http($url, $message) { $sep = (strpos($url, '?') === FALSE) ? '?' : '&'; header('Location: ' . $url . $sep . implode('&', $query), TRUE, 302); - // Commit session data before redirecting. - drupal_session_commit(); - - exit; + drupal_exit(); } /** @@ -78,10 +75,7 @@ function openid_redirect($url, $message) { $output .= "</body></html>\n"; print $output; - // Commit session data before redirecting. - drupal_session_commit(); - - exit; + drupal_exit(); } function openid_redirect_form($form, &$form_state, $url, $message) { |