check game ID on AJAX communications
This commit is contained in:
parent
8500bc8d81
commit
0e8ac74417
|
@ -70,11 +70,9 @@ switch ($_POST['act']){
|
|||
|
||||
case "fight":
|
||||
|
||||
|
||||
if(
|
||||
($_SESSION['game'] <> "connectFou")
|
||||
|| ((!$new) && ($_POST['gameId'] <> $_SESSION['matchId'))
|
||||
){
|
||||
($_SESSION['game'] <> "connectFou") || ((!$new) && ($_POST['gameId'] <> $_SESSION['matchId'))
|
||||
){
|
||||
error(500,"game non found");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user