diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-07 10:23:23 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-07 10:23:23 +0800 |
commit | 87e2e8ae38c1c8b0fda6bbdaf76862adb5bef00f (patch) | |
tree | e7b19f03a805a0ff70149f3cc577ce987299d384 /mbbsd/register.c | |
parent | ad5675825878286281ae3e9804e7fd1ffcd47723 (diff) | |
download | pttbbs-87e2e8ae38c1c8b0fda6bbdaf76862adb5bef00f.tar pttbbs-87e2e8ae38c1c8b0fda6bbdaf76862adb5bef00f.tar.gz pttbbs-87e2e8ae38c1c8b0fda6bbdaf76862adb5bef00f.tar.bz2 pttbbs-87e2e8ae38c1c8b0fda6bbdaf76862adb5bef00f.tar.lz pttbbs-87e2e8ae38c1c8b0fda6bbdaf76862adb5bef00f.tar.xz pttbbs-87e2e8ae38c1c8b0fda6bbdaf76862adb5bef00f.tar.zst pttbbs-87e2e8ae38c1c8b0fda6bbdaf76862adb5bef00f.zip |
- fix reg-career check
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4088 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/register.c')
-rw-r--r-- | mbbsd/register.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/register.c b/mbbsd/register.c index d0470fb1..bf62d322 100644 --- a/mbbsd/register.c +++ b/mbbsd/register.c @@ -177,7 +177,8 @@ isvalidcareer(char *career) return "您的輸入不正確"; #endif if (strstr(career, "學") && strstr(career, "系") && - (strstr(career, "畢") ==0 && strstr(career, "肄") == 0)) + strstr(career, "級") == NULL && + (strstr(career, "畢") == NULL && strstr(career, "肄") == NULL)) return "請加上年級"; return NULL; } |