fix parse regex

This commit is contained in:
Gnieark 2015-12-14 16:51:18 +01:00
parent 3893ff6b98
commit 55a3826784

View File

@ -54,7 +54,7 @@ switch($_POST['act']){
} }
$$key=$_POST[$key]; $$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; echo "parametre incorrect"; die;
} }