diff options
author | bbs <bbs@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-07-13 19:47:18 +0800 |
---|---|---|
committer | bbs <bbs@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-07-13 19:47:18 +0800 |
commit | 00afea2770df8eaa9ae7210922a10e3bbe560142 (patch) | |
tree | de0e81b1ce59c411d4c6139128db0b6670962a5d /mbbsd | |
parent | 35c89eb5701cad9c34380583442acb0512cfa6c9 (diff) | |
download | pttbbs-00afea2770df8eaa9ae7210922a10e3bbe560142.tar pttbbs-00afea2770df8eaa9ae7210922a10e3bbe560142.tar.gz pttbbs-00afea2770df8eaa9ae7210922a10e3bbe560142.tar.bz2 pttbbs-00afea2770df8eaa9ae7210922a10e3bbe560142.tar.lz pttbbs-00afea2770df8eaa9ae7210922a10e3bbe560142.tar.xz pttbbs-00afea2770df8eaa9ae7210922a10e3bbe560142.tar.zst pttbbs-00afea2770df8eaa9ae7210922a10e3bbe560142.zip |
fix rule
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@1050 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-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 || |