forked from science-ation/science-ation
Fix an ereg that got missed.
This commit is contained in:
parent
e746f5faab
commit
3fae0cb954
@ -120,7 +120,7 @@ case 'save':
|
|||||||
/* See if this field has a validate */
|
/* See if this field has a validate */
|
||||||
if(isset($user_personal_fields[$f]['regexp'])) {
|
if(isset($user_personal_fields[$f]['regexp'])) {
|
||||||
/* Match the regex */
|
/* Match the regex */
|
||||||
if(!ereg($user_personal_fields[$f]['regexp'], $u[$f])) {
|
if(!preg_match($user_personal_fields[$f]['regexp'], $u[$f])) {
|
||||||
/* Bad */
|
/* Bad */
|
||||||
error_("Invalid format for $f expecting ({$user_personal_fields[$f]['format']})");
|
error_("Invalid format for $f expecting ({$user_personal_fields[$f]['format']})");
|
||||||
$save = false;
|
$save = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user