Explorar el Código

! Sometimes git merges are just strange ....

Spuds hace 12 años
padre
commit
7165dca776
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;