From 2c127afc5cc25ffb6f4e0849e0a527e7515cec68 Mon Sep 17 00:00:00 2001 From: Alan Nelson Date: Wed, 24 Jun 2020 14:17:00 -0500 Subject: [PATCH] Fix regression of #248: Support of longer session tickets (#349) --- source/CAS/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/CAS/Client.php b/source/CAS/Client.php index eb9c73a9..bf9fa6ce 100644 --- a/source/CAS/Client.php +++ b/source/CAS/Client.php @@ -1224,7 +1224,7 @@ protected function _renameSession($ticket) phpCAS :: trace("Killing session: ". session_id()); session_destroy(); // set up a new session, of name based on the ticket - $session_id = preg_replace('/[^a-zA-Z0-9\-]/', '', $ticket); + $session_id = $this->_sessionIdForTicket($ticket); phpCAS :: trace("Starting session: ". $session_id); session_id($session_id); session_start();