summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-07-06 14:45:51 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-07-06 14:45:51 +0800
commit94afb5747513bf5f9ac2084839131659e8c08e28 (patch)
tree214db88f58ee13caff3e802a9e6c2293a2f31a7c /mbbsd
parent9c0d8544d70d758e5a644313a77d12c7f2443699 (diff)
downloadpttbbs-94afb5747513bf5f9ac2084839131659e8c08e28.tar
pttbbs-94afb5747513bf5f9ac2084839131659e8c08e28.tar.gz
pttbbs-94afb5747513bf5f9ac2084839131659e8c08e28.tar.bz2
pttbbs-94afb5747513bf5f9ac2084839131659e8c08e28.tar.lz
pttbbs-94afb5747513bf5f9ac2084839131659e8c08e28.tar.xz
pttbbs-94afb5747513bf5f9ac2084839131659e8c08e28.tar.zst
pttbbs-94afb5747513bf5f9ac2084839131659e8c08e28.zip
strstr("����", "��") return true
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@1035 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/user.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index d880f706..553021cc 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -1,4 +1,4 @@
-/* $Id: user.c,v 1.65 2003/07/04 08:35:51 in2 Exp $ */
+/* $Id: user.c,v 1.66 2003/07/06 06:45:51 in2 Exp $ */
#include "bbs.h"
static char *sex[8] = {
@@ -1048,13 +1048,13 @@ toregister(char *email, char *genbuf, char *phone, char *career, char fore,
static int HaveRejectStr(char *s, char **rej)
{
int i;
- char *rejectstr[] =
+ char *ptr, *rejectstr[] =
{"·F", "ªü", "¤£", "§A¶ý", "¬Y", "²Â", "§b", "..", "xx",
"§AºÞ", "ºÞ§Ú", "²q", "¤Ñ¤~", "¶W¤H",
"£t", "£u", "£v", "£w", "£x", "£y", "£z", "£{", "£|", "£}", "£~",
- "£¡", "£¢", "££", "£¤", "£¥", "£¦", "£§", "£¨", "£©", "£ª", "£¸",
- "£¹", "£º", "£«", "£¬", "£­", "£®", "£¯", "£°", "£±", "£²", "£³",
- "£´", "£µ", "£¶", "£·", NULL};
+ "£¡", "£¢", "££", "£¤",/*"£¥",*/ "£¦", "£§", "£¨", "£©", "£ª",
+ "£¸", "£¹", "£º", "£«", "£¬", "£­", "£®", "£¯", "£°", "£±", "£²",
+ "£³", "£´", "£µ", "£¶", "£·", NULL};
if( rej != NULL )
for( i = 0 ; rej[i] != NULL ; ++i )
@@ -1064,6 +1064,12 @@ static int HaveRejectStr(char *s, char **rej)
for( i = 0 ; rejectstr[i] != NULL ; ++i )
if( strstr(s, rejectstr[i]) )
return 1;
+
+ if( (ptr = strstr(s, "£¥")) != NULL ){
+ if( ptr != s && strncmp(ptr - 1, "³£¥«", 4) == 0 )
+ return 0;
+ return 1;
+ }
return 0;
}