* fix the error of checkAccount.

This commit is contained in:
wangchunsheng
2011-02-10 03:15:41 +00:00
parent 1742d2eebd
commit bec81c6045
+1 -1
View File
@@ -211,7 +211,7 @@ class validater
*/
public static function checkAccount($var)
{
return self::checkREG($var, '|[a-zA-Z0-9._]{3}|');
return self::checkREG($var, '|^[a-zA-Z0-9_]{1}[a-zA-Z0-9_]{1,}[a-zA-Z0-9_]{1}$|');
}
/**