mirror of
https://github.com/danog/tgseclib.git
synced 2024-11-27 04:34:45 +01:00
- SSH servers whose identification string had trailing spaces wouldn't calculate the exchange hash correctly (thanks voxo!)
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@107 21d32557-59b3-4da0-833f-c5933fad653e
This commit is contained in:
parent
068983328f
commit
a33bc87e83
@ -60,7 +60,7 @@
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright MMVII Jim Wigginton
|
||||
* @license http://www.gnu.org/licenses/lgpl.txt
|
||||
* @version $Id: SSH2.php,v 1.45 2010-04-25 14:19:43 terrafrost Exp $
|
||||
* @version $Id: SSH2.php,v 1.46 2010-04-27 21:29:36 terrafrost Exp $
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
@ -691,7 +691,7 @@ class Net_SSH2 {
|
||||
}
|
||||
}
|
||||
|
||||
$this->server_identifier = trim($temp);
|
||||
$this->server_identifier = trim($temp, "\r\n");
|
||||
if (!empty($extra)) {
|
||||
$this->errors[] = utf8_decode($extra);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user