summaryrefslogtreecommitdiffstats
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
commit7dbc70888f2d8735d0236356180817be2fc7f83b (patch)
tree0c843c014556bca693a6d7a20614d6b34db67336
parent48356738c6c3282fa5b44b46cc0eb23a71d9a197 (diff)
downloadpttbbs-7dbc70888f2d8735d0236356180817be2fc7f83b.tar
pttbbs-7dbc70888f2d8735d0236356180817be2fc7f83b.tar.gz
pttbbs-7dbc70888f2d8735d0236356180817be2fc7f83b.tar.bz2
pttbbs-7dbc70888f2d8735d0236356180817be2fc7f83b.tar.lz
pttbbs-7dbc70888f2d8735d0236356180817be2fc7f83b.tar.xz
pttbbs-7dbc70888f2d8735d0236356180817be2fc7f83b.tar.zst
pttbbs-7dbc70888f2d8735d0236356180817be2fc7f83b.zip
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
-rw-r--r--pttbbs/mbbsd/io.c4
1 files changed, 4 insertions, 0 deletions
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;