Skip to content
Snippets Groups Projects
Commit 4d59f52d authored by George Nachman's avatar George Nachman
Browse files

Don't respect input broadcasting for password entry

parent cdfc6670
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -3915,8 +3915,8 @@ ITERM_WEAKLY_REFERENCEABLE
// Try to figure out if we're at a shell prompt. Send a space character and immediately
// backspace over it. If no output is received within a specified timeout, then go ahead and
// send the password. Otherwise, ask for confirmation.
[self writeTask:[@" " dataUsingEncoding:self.encoding]];
[self writeTask:backspace];
[self writeTaskNoBroadcast:[@" " dataUsingEncoding:self.encoding]];
[self writeTaskNoBroadcast:backspace];
_bytesReceivedSinceSendingEchoProbe = 0;
[self performSelector:@selector(enterPasswordIfEchoProbeOk:)
withObject:password
Loading
Loading
@@ -3943,8 +3943,8 @@ ITERM_WEAKLY_REFERENCEABLE
}
 
- (void)enterPasswordNoProbe:(NSString *)password {
[self writeTask:[password dataUsingEncoding:self.encoding]];
[self writeTask:[@"\n" dataUsingEncoding:self.encoding]];
[self writeTaskNoBroadcast:[password dataUsingEncoding:self.encoding]];
[self writeTaskNoBroadcast:[@"\n" dataUsingEncoding:self.encoding]];
}
 
- (NSImage *)dragImage
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment