Jelajahi Sumber

! Sometimes git merges are just strange ....

Spuds 12 tahun lalu
induk
melakukan
7165dca776
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      Sources/Session.php

+ 1 - 1
Sources/Session.php

@@ -51,7 +51,7 @@ function loadSession()
 			session_write_close();
 
 		// This is here to stop people from using bad junky PHPSESSIDs.
-
+		if (isset($_REQUEST[session_name()]) && preg_match('~^[A-Za-z0-9,-]{16,64}$~', $_REQUEST[session_name()]) == 0 && !isset($_COOKIE[session_name()]))
 		{
 			$session_id = md5(md5('smf_sess_' . time()) . mt_rand());
 			$_REQUEST[session_name()] = $session_id;