From 3fae0cb954e259ae08eb03961728b55b0d169a0c Mon Sep 17 00:00:00 2001 From: james Date: Fri, 10 Feb 2012 03:16:58 +0000 Subject: [PATCH] Fix an ereg that got missed. --- user_personal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user_personal.php b/user_personal.php index 71035fd..be289c4 100644 --- a/user_personal.php +++ b/user_personal.php @@ -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;