summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-11-01 01:20:28 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-11-01 01:20:28 +0800
commitc42e6dc3b8bb59fae280e7ced539d5b07129a757 (patch)
tree144657fe7b2ab99888409a219287b8b303270bcb /mbbsd
parent7063a37d1220883a1ef006fa3be97ea7d0fd4408 (diff)
downloadpttbbs-c42e6dc3b8bb59fae280e7ced539d5b07129a757.tar
pttbbs-c42e6dc3b8bb59fae280e7ced539d5b07129a757.tar.gz
pttbbs-c42e6dc3b8bb59fae280e7ced539d5b07129a757.tar.bz2
pttbbs-c42e6dc3b8bb59fae280e7ced539d5b07129a757.tar.lz
pttbbs-c42e6dc3b8bb59fae280e7ced539d5b07129a757.tar.xz
pttbbs-c42e6dc3b8bb59fae280e7ced539d5b07129a757.tar.zst
pttbbs-c42e6dc3b8bb59fae280e7ced539d5b07129a757.zip
disallow user input telnet protocol leading char IAC chr(255)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1285 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/io.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mbbsd/io.c b/mbbsd/io.c
index a7aad6bc..ef5d76da 100644
--- a/mbbsd/io.c
+++ b/mbbsd/io.c
@@ -317,6 +317,10 @@ igetch()
}
}
return ch;
+ case IAC:
+ // disallow user input telnet protocol leading char IAC chr(255)
+ // TODO parse telnet protocol
+ continue;
default:
return ch;