From c42e6dc3b8bb59fae280e7ced539d5b07129a757 Mon Sep 17 00:00:00 2001 From: kcwu Date: Fri, 31 Oct 2003 17:20:28 +0000 Subject: 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 --- mbbsd/io.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mbbsd') 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; -- cgit v1.2.3