Skip to content
Snippets Groups Projects
Commit 1c2cda2d authored by Angie Byron's avatar Angie Byron
Browse files

#681134 by moshe weitzman: Fixed stop issuing headers to CLI clients.

parent 6260946b
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment