Prevent outsider from sending ANSI escape codes
This commit is contained in:
parent
a21fded170
commit
86b40e016a
|
@ -130,7 +130,7 @@ class Loghandler(threading.Thread):
|
||||||
while True:
|
while True:
|
||||||
s=self.inpc.recv()
|
s=self.inpc.recv()
|
||||||
if s=='QUIT': break
|
if s=='QUIT': break
|
||||||
sys.stdout.write(s)
|
sys.stdout.write(s.replace('\x1b','^['))
|
||||||
|
|
||||||
class Threadwrapper(threading.Thread):
|
class Threadwrapper(threading.Thread):
|
||||||
def __init__(self,func,arg):
|
def __init__(self,func,arg):
|
||||||
|
|
Loading…
Reference in New Issue