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 | a9113c230287f83e7a30541940060ee41363659e (patch) | |
tree | 5c4f1311c986cd49b0bbd77bd06badbbb6fe043b | |
parent | 2d078659df246856c75e831a1d28a6f7f57dab97 (diff) | |
download | pttbbs-a9113c230287f83e7a30541940060ee41363659e.tar pttbbs-a9113c230287f83e7a30541940060ee41363659e.tar.gz pttbbs-a9113c230287f83e7a30541940060ee41363659e.tar.bz2 pttbbs-a9113c230287f83e7a30541940060ee41363659e.tar.lz pttbbs-a9113c230287f83e7a30541940060ee41363659e.tar.xz pttbbs-a9113c230287f83e7a30541940060ee41363659e.tar.zst pttbbs-a9113c230287f83e7a30541940060ee41363659e.zip |
fix rule
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@1050 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/user.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/user.c b/pttbbs/mbbsd/user.c index 553021cc..cd80d57b 100644 --- a/pttbbs/mbbsd/user.c +++ b/pttbbs/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 || |