Browse Source

! Add session ID to link if NOT possibly_robot

emanuele 13 years ago
parent
commit
3ca7fcd9f1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Sources/QueryString.php

+ 1 - 1
Sources/QueryString.php

@@ -601,7 +601,7 @@ function ob_sessrewrite($buffer)
 
 	// 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.
 	// @todo smflib
-	if (empty($_COOKIE) && SID != '' && isBrowser('possibly_robot'))
+	if (empty($_COOKIE) && SID != '' && !isBrowser('possibly_robot'))
 		$buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '(?!\?' . preg_quote(SID, '/') . ')\\??/', '"' . $scripturl . '?' . SID . '&', $buffer);
 	// Debugging templates, are we?
 	elseif (isset($_GET['debug']))