From d97f4bdba3e29ea63f488e56f5141a203b7b2171 Mon Sep 17 00:00:00 2001 From: Angie Byron <webchick@24967.no-reply.drupal.org> Date: Thu, 29 Apr 2010 05:35:21 +0000 Subject: [PATCH] #697210 follow-up by deekayen, moshe weitzman: Changed Change die() instances to exit(). --- includes/locale.inc | 2 +- includes/xmlrpcs.inc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/locale.inc b/includes/locale.inc index fab8356bff2c..543ebc48a661 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 441bb33cadac..eb12966a1b1c 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)) { -- GitLab