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 /includes/ajax.inc | |
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 'includes/ajax.inc')
-rw-r--r-- | includes/ajax.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/ajax.inc b/includes/ajax.inc index 1b8564d7a..ca198d6fa 100644 --- a/includes/ajax.inc +++ b/includes/ajax.inc @@ -162,7 +162,7 @@ function ajax_render($commands = array(), $header = TRUE) { else { print drupal_json_encode($commands); } - exit; + drupal_exit(); } /** @@ -207,7 +207,7 @@ function ajax_get_form() { // This is likely a hacking attempt as it never happens under normal // circumstances, so we just do nothing. watchdog('ajax', 'Invalid form POST data.', array(), WATCHDOG_WARNING); - exit; + drupal_exit(); } // Since some of the submit handlers are run, redirects need to be disabled. |