summaryrefslogtreecommitdiffstats
path: root/mbbsd/register.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-11-30 12:51:13 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-11-30 12:51:13 +0800
commit6484cecb100feeb348d9b18a1287addc3174f6db (patch)
tree2dc0c4de81bf6d395410da33ffbd289e3efbc910 /mbbsd/register.c
parent6409c4a81d0752c7a572a3ba6471797193ca8f87 (diff)
downloadpttbbs-6484cecb100feeb348d9b18a1287addc3174f6db.tar
pttbbs-6484cecb100feeb348d9b18a1287addc3174f6db.tar.gz
pttbbs-6484cecb100feeb348d9b18a1287addc3174f6db.tar.bz2
pttbbs-6484cecb100feeb348d9b18a1287addc3174f6db.tar.lz
pttbbs-6484cecb100feeb348d9b18a1287addc3174f6db.tar.xz
pttbbs-6484cecb100feeb348d9b18a1287addc3174f6db.tar.zst
pttbbs-6484cecb100feeb348d9b18a1287addc3174f6db.zip
reject for registering userid containing shit or fuck
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@580 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/register.c')
-rw-r--r--mbbsd/register.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mbbsd/register.c b/mbbsd/register.c
index 5ef02f4a..a138a4c3 100644
--- a/mbbsd/register.c
+++ b/mbbsd/register.c
@@ -1,4 +1,4 @@
-/* $Id: register.c,v 1.9 2002/07/22 19:02:00 in2 Exp $ */
+/* $Id: register.c,v 1.10 2002/11/30 04:51:13 in2 Exp $ */
#define _XOPEN_SOURCE
#include "bbs.h"
@@ -60,6 +60,10 @@ bad_user_id(char *userid)
if (strcasecmp(userid, str_new) == 0)
return 1;
+ if (strcasestr(userid, "fuck") != NULL ||
+ strcasestr(userid, "shit") != NULL )
+ return 1;
+
/*
* while((ch = *(++userid))) if(not_alnum(ch)) return 1;
*/