diff options
-rw-r--r-- | mbbsd/user.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c index 553021cc..cd80d57b 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -1,4 +1,4 @@ -/* $Id: user.c,v 1.66 2003/07/06 06:45:51 in2 Exp $ */ +/* $Id: user.c,v 1.67 2003/07/13 11:47:18 bbs Exp $ */ #include "bbs.h" static char *sex[8] = { @@ -869,6 +869,8 @@ ispersonalid(char *inid) i = cksum = 0; if (!isalpha(id[0]) && (strlen(id) != 10)) return 0; + if (!(id[1] == '1' || id[1] == '2')) + return 0; id[0] = toupper(id[0]); if( strcmp(id, "A100000001") == 0 || |