From 031326b902f39bb2dd4f27b2747d24180f4c4e1e Mon Sep 17 00:00:00 2001 From: Jon Stovell Date: Wed, 25 Dec 2024 13:35:05 -0700 Subject: [PATCH] Replaces uses of deprecated constant SID with calls to session_id() Signed-off-by: Jon Stovell --- Sources/QueryString.php | 14 +++++++------- Sources/Utils.php | 10 +++++----- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Sources/QueryString.php b/Sources/QueryString.php index afd1e1612f..7a113c46fe 100644 --- a/Sources/QueryString.php +++ b/Sources/QueryString.php @@ -414,14 +414,14 @@ public static function isFilteredRequest(array $value_list, string $var): bool */ public static function ob_sessrewrite(string $buffer): string { - // If Config::$scripturl is set to nothing, or the SID is not defined (SSI?) just quit. - if (Config::$scripturl == '' || !defined('SID')) { + // If Config::$scripturl is set to nothing, or the session ID is not defined (SSI?) just quit. + if (Config::$scripturl == '' || session_id() === false) { return $buffer; } // Do nothing if the session is cookied, or they are a crawler - guests are caught by redirectexit(). - if (empty($_COOKIE) && SID != '' && !BrowserDetector::isBrowser('possibly_robot')) { - $buffer = preg_replace('/(?