mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-05 13:07:53 +00:00
SSH1,SSH2: strpos expects string - not array
This commit is contained in:
parent
bccce5802c
commit
94ca5e1d0c
@ -886,7 +886,7 @@ class Net_SSH1 {
|
||||
while (true) {
|
||||
if ($mode == NET_SSH1_READ_REGEX) {
|
||||
preg_match($expect, $this->interactiveBuffer, $matches);
|
||||
$match = isset($matches[0]) ? $matches[0] : array();
|
||||
$match = isset($matches[0]) ? $matches[0] : '';
|
||||
}
|
||||
$pos = strlen($match) ? strpos($this->interactiveBuffer, $match) : false;
|
||||
if ($pos !== false) {
|
||||
|
@ -1953,7 +1953,7 @@ class Net_SSH2 {
|
||||
while (true) {
|
||||
if ($mode == NET_SSH2_READ_REGEX) {
|
||||
preg_match($expect, $this->interactiveBuffer, $matches);
|
||||
$match = isset($matches[0]) ? $matches[0] : array();
|
||||
$match = isset($matches[0]) ? $matches[0] : '';
|
||||
}
|
||||
$pos = strlen($match) ? strpos($this->interactiveBuffer, $match) : false;
|
||||
if ($pos !== false) {
|
||||
|
Loading…
Reference in New Issue
Block a user