From 7dbc70888f2d8735d0236356180817be2fc7f83b 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@1285 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/mbbsd/io.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pttbbs/mbbsd/io.c b/pttbbs/mbbsd/io.c index a7aad6bc..ef5d76da 100644 --- a/pttbbs/mbbsd/io.c +++ b/pttbbs/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