mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-10 15:48:06 -05:00
Enable high-half characters (>=160) in usernames and passwords
[originally from svn r454]
This commit is contained in:
parent
300b778092
commit
ba68a6d5f7
4
ssh.c
4
ssh.c
@ -500,7 +500,7 @@ static void ssh_protocol(unsigned char *in, int inlen, int ispkt) {
|
||||
exit(0);
|
||||
break;
|
||||
default:
|
||||
if (c >= ' ' && c <= '~' && pos < 40) {
|
||||
if (((c >= ' ' && c <= '~') || (c >= 160)) && pos < 40) {
|
||||
username[pos++] = c;
|
||||
c_write(&c, 1);
|
||||
}
|
||||
@ -584,7 +584,7 @@ static void ssh_protocol(unsigned char *in, int inlen, int ispkt) {
|
||||
exit(0);
|
||||
break;
|
||||
default:
|
||||
if (c >= ' ' && c <= '~' && pos < 40)
|
||||
if (((c >= ' ' && c <= '~') || (c >= 160)) && pos < 40)
|
||||
password[pos++] = c;
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user