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