From 55a3826784dc2858db19b1419ae3c54afb75f3b9 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Mon, 14 Dec 2015 16:51:18 +0100 Subject: [PATCH] fix parse regex --- html/StupidIABattleship.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }