* Fix loophole.

This commit is contained in:
wangyidong
2023-08-18 15:02:07 +08:00
parent 6ebb01c61a
commit 8836f5c193
+1 -1
View File
@@ -1062,7 +1062,7 @@ class baseRouter
$this->sessionID = isset($ztSessionHandler) ? $ztSessionHandler->getSessionID() : session_id();
if(isset($_GET[$this->config->sessionVar]))
if(isset($_GET[$this->config->sessionVar]) and preg_match('/^\w+$/', $_GET[$this->config->sessionVar])) // Check zentaosid only exist [0-9a-zA-Z_].
{
helper::restartSession($_GET[$this->config->sessionVar]);
}