From 147a30d22cad9f074a2f2a968a156e021ae59f33 Mon Sep 17 00:00:00 2001
From: Jan-Hendrik Willms <tleilax+studip@gmail.com>
Date: Thu, 19 Dec 2024 13:56:50 +0100
Subject: [PATCH] small code improvement, re #1552

---
 lib/bootstrap-definitions.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/bootstrap-definitions.php b/lib/bootstrap-definitions.php
index 06380a830d5..e9841b8297e 100644
--- a/lib/bootstrap-definitions.php
+++ b/lib/bootstrap-definitions.php
@@ -78,7 +78,8 @@ return [
             $session_handler = new Studip\Session\DbSessionHandler();
         }
         $GLOBALS['SESSION_OPTIONS']['path'] = $GLOBALS['CANONICAL_RELATIVE_PATH_STUDIP'];
-        $GLOBALS['SESSION_OPTIONS']['secure'] = Request::protocol() == 'https';
+        $GLOBALS['SESSION_OPTIONS']['secure'] = Request::protocol() === 'https';
+
         return new Studip\Session\Manager($session_handler, $GLOBALS['SESSION_OPTIONS']);
 
     }),
-- 
GitLab