fix parse regex
This commit is contained in:
parent
3893ff6b98
commit
55a3826784
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user