You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/QueryString.php
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -648,14 +648,14 @@ function ob_sessrewrite($buffer)
648
648
{
649
649
global$scripturl, $modSettings, $context;
650
650
651
-
// If $scripturl is set to nothing, or the SID is not defined (SSI?) just quit.
652
-
if ($scripturl == '' || !defined('SID'))
651
+
// If $scripturl is set to nothing, or the session ID is not defined (SSI?) just quit.
652
+
if ($scripturl == '' || session_id() === false)
653
653
return$buffer;
654
654
655
655
// Do nothing if the session is cookied, or they are a crawler - guests are caught by redirectexit(). This doesn't work below PHP 4.3.0, because it makes the output buffer bigger.
656
656
// @todo smflib
657
-
if (empty($_COOKIE) && SID != '' && !isBrowser('possibly_robot'))
0 commit comments