diff options
-rw-r--r-- | includes/locale.inc | 2 | ||||
-rw-r--r-- | includes/xmlrpcs.inc | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/includes/locale.inc b/includes/locale.inc index fab8356bf..543ebc48a 100644 --- a/includes/locale.inc +++ b/includes/locale.inc @@ -1391,7 +1391,7 @@ function _locale_export_po($language = NULL, $output = NULL) { header("Content-Disposition: attachment; filename=$filename"); header("Content-Type: text/plain; charset=utf-8"); print $output; - exit(); + drupal_exit(); } /** diff --git a/includes/xmlrpcs.inc b/includes/xmlrpcs.inc index 441bb33ca..eb12966a1 100644 --- a/includes/xmlrpcs.inc +++ b/includes/xmlrpcs.inc @@ -60,7 +60,8 @@ function xmlrpc_server($callbacks) { $data = file_get_contents('php://input'); if (!$data) { - exit('XML-RPC server accepts POST requests only.'); + print 'XML-RPC server accepts POST requests only.'; + drupal_exit(); } $xmlrpc_server->message = xmlrpc_message($data); if (!xmlrpc_message_parse($xmlrpc_server->message)) { |