Prevent outsider from sending ANSI escape codes

This commit is contained in:
Juhani Haverinen 2014-03-18 18:01:46 +02:00
parent a21fded170
commit 86b40e016a
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ class Loghandler(threading.Thread):
while True:
s=self.inpc.recv()
if s=='QUIT': break
sys.stdout.write(s)
sys.stdout.write(s.replace('\x1b','^['))
class Threadwrapper(threading.Thread):
def __init__(self,func,arg):