mirror of
				https://github.com/avatao-content/baseimage-tutorial-framework
				synced 2025-11-04 07:42:54 +00:00 
			
		
		
		
	Avoid mixing up terminal.write command with user input
This commit is contained in:
		@@ -42,6 +42,9 @@ class TerminalHandler:
 | 
			
		||||
            LOG.error('IGNORING MESSAGE: Invalid message received: %s', message)
 | 
			
		||||
 | 
			
		||||
    def handle_write(self, message):
 | 
			
		||||
        concat = message.get('concat', False)
 | 
			
		||||
        if not concat:
 | 
			
		||||
            self.terminado_server.pty.write('\x15')
 | 
			
		||||
        self.terminado_server.pty.write(message['command'])
 | 
			
		||||
 | 
			
		||||
    def cleanup(self):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user