fix for passwords with special characters
This commit is contained in:
parent
656f263f1d
commit
da75714eea
|
@ -1338,7 +1338,7 @@ class Net_SSH2 {
|
||||||
return $this->_privatekey_login($username, $password);
|
return $this->_privatekey_login($username, $password);
|
||||||
}
|
}
|
||||||
|
|
||||||
$utf8_password = utf8_encode($password);
|
$utf8_password = $password;//utf8_encode($password);
|
||||||
$packet = pack('CNa*Na*Na*CNa*',
|
$packet = pack('CNa*Na*Na*CNa*',
|
||||||
NET_SSH2_MSG_USERAUTH_REQUEST, strlen($username), $username, strlen('ssh-connection'), 'ssh-connection',
|
NET_SSH2_MSG_USERAUTH_REQUEST, strlen($username), $username, strlen('ssh-connection'), 'ssh-connection',
|
||||||
strlen('password'), 'password', 0, strlen($utf8_password), $utf8_password
|
strlen('password'), 'password', 0, strlen($utf8_password), $utf8_password
|
||||||
|
|
Loading…
Reference in New Issue