From 82391aefa55cd34807ec8ab70c853671fe0c9e29 Mon Sep 17 00:00:00 2001 From: Tim van Dijen <tim.dijen@minbzk.nl> Date: Wed, 27 Oct 2021 21:13:41 +0200 Subject: [PATCH] Fix undefined variable --- docs/simplesamlphp-changelog.md | 6 ++++++ lib/SimpleSAML/SessionHandlerPHP.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/simplesamlphp-changelog.md b/docs/simplesamlphp-changelog.md index 55da29492..c962ba052 100644 --- a/docs/simplesamlphp-changelog.md +++ b/docs/simplesamlphp-changelog.md @@ -6,6 +6,12 @@ SimpleSAMLphp changelog This document lists the changes between versions of SimpleSAMLphp. See the upgrade notes for specific information about upgrading. +## Version 1.19.3 + +Released TBD + + * Fixed a wrong variable name introduced in v1.19.2 (#1480) that rendered the PHP session handler useless. + ## Version 1.19.2 Released 2021-10-27 diff --git a/lib/SimpleSAML/SessionHandlerPHP.php b/lib/SimpleSAML/SessionHandlerPHP.php index 55baa28de..a3c2ff177 100644 --- a/lib/SimpleSAML/SessionHandlerPHP.php +++ b/lib/SimpleSAML/SessionHandlerPHP.php @@ -162,7 +162,7 @@ class SessionHandlerPHP extends SessionHandler { if ($this->hasSessionCookie()) { session_regenerate_id(false); - $session_id = session_id(); + $sessionId = session_id(); } else { // generate new (secure) session id $sid_length = intval(ini_get('session.sid_length')); -- GitLab