summaryrefslogtreecommitdiffstats
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
commit4cf706eefce88b66f76f142a079bc5cd4d463626 (patch)
treeca8fa4a3dfef2b727cb1cea25d0dc2bbf33459e6
parentd24c0cf9f810b9ec03a9bf4f8ca93b5f75f1c0e9 (diff)
downloadpttbbs-4cf706eefce88b66f76f142a079bc5cd4d463626.tar
pttbbs-4cf706eefce88b66f76f142a079bc5cd4d463626.tar.gz
pttbbs-4cf706eefce88b66f76f142a079bc5cd4d463626.tar.bz2
pttbbs-4cf706eefce88b66f76f142a079bc5cd4d463626.tar.lz
pttbbs-4cf706eefce88b66f76f142a079bc5cd4d463626.tar.xz
pttbbs-4cf706eefce88b66f76f142a079bc5cd4d463626.tar.zst
pttbbs-4cf706eefce88b66f76f142a079bc5cd4d463626.zip
reject for registering userid containing shit or fuck
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@580 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/register.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/register.c b/pttbbs/mbbsd/register.c
index 5ef02f4a..a138a4c3 100644
--- a/pttbbs/mbbsd/register.c
+++ b/pttbbs/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;
*/