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)
commit61db8bcc92f53c708d10be01eb48ebf49cfb1274
treee73f4e20e50b88cbde104920604773355e41789d
parentcffcae7d74f4fafb1811415f780ce37f9bffa9f2
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