From 00afea2770df8eaa9ae7210922a10e3bbe560142 Mon Sep 17 00:00:00 2001 From: bbs Date: Sun, 13 Jul 2003 11:47:18 +0000 Subject: fix rule git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@1050 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/user.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 || -- cgit v1.2.3