Filter non-ASCII input when not in binary mode
authorJeremy Stanley <fungi@yuggoth.org>
Sat, 30 Jun 2018 13:42:40 +0000 (13:42 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Sat, 30 Jun 2018 15:09:03 +0000 (15:09 +0000)
commit8b2a788b00f495b4d05d6e2e8b7ce9f3bb63b932
treee73f4e20e50b88cbde104920604773355e41789d
parent34d256939f22a5186b32d0628ed399e4b644e798
Filter non-ASCII input when not in binary mode

If the client does not have binary send enabled per prior Telnet
option negotiation, filter for non-ASCII characters. This fixes a
bug where previously only binary mode senders were checked for
non-ASCII input and 7-bit senders were checked for non-UTF-8 input
rather than the other way around.
mudpy/misc.py
mudpy/tests/selftest.py