From 1c2cda2d7ce7cbdff083375506dc1ff8ad339fbc Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Thu, 14 Jan 2010 02:05:34 +0000 Subject: #681134 by moshe weitzman: Fixed stop issuing headers to CLI clients. --- includes/session.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/session.inc b/includes/session.inc index 2aeb8eee5..0d387a146 100644 --- a/includes/session.inc +++ b/includes/session.inc @@ -215,7 +215,8 @@ function drupal_session_initialize() { * @ingroup php_wrappers */ function drupal_session_start() { - if (!drupal_session_started()) { + // Command line clients do not support cookies nor sessions. + if (!drupal_session_started() && !drupal_is_cli()) { // Save current session data before starting it, as PHP will destroy it. $session_data = isset($_SESSION) ? $_SESSION : NULL; -- cgit v1.2.3