Fix an ereg that got missed.

This commit is contained in:
james 2012-02-10 03:16:58 +00:00
parent e746f5faab
commit 3fae0cb954

View File

@ -120,7 +120,7 @@ case 'save':
/* See if this field has a validate */
if(isset($user_personal_fields[$f]['regexp'])) {
/* Match the regex */
if(!ereg($user_personal_fields[$f]['regexp'], $u[$f])) {
if(!preg_match($user_personal_fields[$f]['regexp'], $u[$f])) {
/* Bad */
error_("Invalid format for $f expecting ({$user_personal_fields[$f]['format']})");
$save = false;