diff --git a/html/StupidIABattleship.php b/html/StupidIABattleship.php index 66a6856..d69626d 100644 --- a/html/StupidIABattleship.php +++ b/html/StupidIABattleship.php @@ -54,7 +54,7 @@ switch($_POST['act']){ } $$key=$_POST[$key]; } - if(!preg_match('^[0-9]+-(1|2)$',$match_id)){ + if(!preg_match('/^[0-9]+-(1|2)$/',$match_id)){ echo "parametre incorrect"; die; }