fix for passwords with special characters

This commit is contained in:
Roland Gruber 2011-05-31 16:32:25 +00:00
parent 656f263f1d
commit da75714eea
1 changed files with 1 additions and 1 deletions

View File

@ -1338,7 +1338,7 @@ class Net_SSH2 {
return $this->_privatekey_login($username, $password);
}
$utf8_password = utf8_encode($password);
$utf8_password = $password;//utf8_encode($password);
$packet = pack('CNa*Na*Na*CNa*',
NET_SSH2_MSG_USERAUTH_REQUEST, strlen($username), $username, strlen('ssh-connection'), 'ssh-connection',
strlen('password'), 'password', 0, strlen($utf8_password), $utf8_password