mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 09:14:06 +02:00
Merge pull request #77 from cowai/fix-read
Fix connection->read() when first line is not prompt.
This commit is contained in:
commit
26b7b87803
1 changed files with 5 additions and 1 deletions
|
|
@ -66,7 +66,11 @@ class Connection extends RawConnection {
|
|||
$this->parser->checkConnectionError($promptLine);
|
||||
|
||||
$output = [];
|
||||
$line = $this->readLine();
|
||||
if (!$this->isPrompt($promptLine)) {
|
||||
$line = $promptLine;
|
||||
} else {
|
||||
$line = $this->readLine();
|
||||
}
|
||||
if ($line === false) {
|
||||
$this->unknownError($promptLine);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue