diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-09-22 21:00:56 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-09-22 21:00:56 +0800 |
commit | 95e5c73f8bb498bd76233a4773fce5c79235a45c (patch) | |
tree | 10a11e000dccb9128e6b8fed786b94c020db4f71 /mbbsd/register.c | |
parent | b9e3f0900ec26a0969e02c9ba9b7d63b4647cc27 (diff) | |
download | pttbbs-95e5c73f8bb498bd76233a4773fce5c79235a45c.tar pttbbs-95e5c73f8bb498bd76233a4773fce5c79235a45c.tar.gz pttbbs-95e5c73f8bb498bd76233a4773fce5c79235a45c.tar.bz2 pttbbs-95e5c73f8bb498bd76233a4773fce5c79235a45c.tar.lz pttbbs-95e5c73f8bb498bd76233a4773fce5c79235a45c.tar.xz pttbbs-95e5c73f8bb498bd76233a4773fce5c79235a45c.tar.zst pttbbs-95e5c73f8bb498bd76233a4773fce5c79235a45c.zip |
* detect repeated DBCS commands from evil clients
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4877 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/register.c')
-rw-r--r-- | mbbsd/register.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mbbsd/register.c b/mbbsd/register.c index b5a22faf..3db22103 100644 --- a/mbbsd/register.c +++ b/mbbsd/register.c @@ -717,10 +717,15 @@ new_register(void) #endif #ifdef DBCSAWARE +# ifdef DBCSAWARE_SKIP_EVIL_REPEATS_CHECK if(u_detectDBCSAwareEvilClient()) newuser.uflag &= ~UF_DBCSAWARE; else newuser.uflag |= UF_DBCSAWARE; +# else + // since we check for repeats, safe to set DBCS aware to user + newuser.uflag |= UF_DBCSAWARE; +# endif #endif more("etc/register", NA); |