From 614c61afe82b9fb133cd8c6c6ba979f75368802f Mon Sep 17 00:00:00 2001 From: Laurent Cherpit Date: Mon, 28 Jul 2025 15:05:17 +0200 Subject: [PATCH] Fix check of server uri remove duplicates and extra slashes. --- 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 8ca9711f..08570a2e 100644 --- a/source/CAS/Client.php +++ b/source/CAS/Client.php @@ -1034,7 +1034,7 @@ public function __construct( } // add leading and trailing `/' and remove doubles if(strstr($server_uri, '?') === false) $server_uri .= '/'; - $server_uri = preg_replace('/\/\//', '/', '/'.$server_uri); + $server_uri = preg_replace('/\/{2,}/', '/', '/'.$server_uri); $this->_server['uri'] = $server_uri; // set to callback mode if PgtIou and PgtId CGI GET parameters are provided