check game ID on AJAX communications

This commit is contained in:
gnieark 2016-06-12 01:06:26 +02:00
parent 8500bc8d81
commit 0e8ac74417

View File

@ -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");
}