updated core to 7.80

This commit is contained in:
2021-07-12 10:11:08 +02:00
parent 7b1e954f7f
commit 5656f5a68a
236 changed files with 4149 additions and 888 deletions

View File

@@ -64,6 +64,19 @@ function session_test_menu() {
return $items;
}
/**
* It's very unusual to do anything outside of a function / hook, but in this
* case we want to simulate a given session.cookie_samesite setting in php.ini
* or via ini_set() in settings.php. This would almost never be a good idea
* outside of a test scenario.
*/
if (isset($_SERVER['HTTP_X_SESSION_COOKIE_INI_SET'])) {
if (in_array($_SERVER['HTTP_X_SESSION_COOKIE_INI_SET'], array('None', 'Lax', 'Strict', '*EMPTY*'))) {
$value = ($_SERVER['HTTP_X_SESSION_COOKIE_INI_SET'] == '*EMPTY*') ? '' : $_SERVER['HTTP_X_SESSION_COOKIE_INI_SET'];
ini_set('session.cookie_samesite', $value);
}
}
/**
* Implements hook_boot().
*/