From eb27f6bce9f33b72bfbf5efe64ffc0eaa743f8cf Mon Sep 17 00:00:00 2001 From: piaip Date: Fri, 27 Jul 2012 14:48:14 +0000 Subject: Prevent user to fake system alert msg. git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5690 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/util/xchatd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pttbbs/util/xchatd.c b/pttbbs/util/xchatd.c index 58522a0f..bf148b4f 100644 --- a/pttbbs/util/xchatd.c +++ b/pttbbs/util/xchatd.c @@ -322,6 +322,9 @@ static int valid_chatid(register char *id) { if(++len > 8) return 0; } + if (DBCS_strcasestr(id, "กป") || + DBCS_strcasestr(id, "กฐ")) + return 0; return len; } -- cgit v1.2.3