mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-04 01:34:07 +02:00
add support for anonymous auth
This commit is contained in:
parent
526f14707e
commit
f4d8bca8fa
4 changed files with 55 additions and 2 deletions
|
|
@ -128,7 +128,7 @@ class RawConnection {
|
|||
* @return array
|
||||
*/
|
||||
public function readAll() {
|
||||
$output = array();
|
||||
$output = [];
|
||||
while ($line = $this->readLine()) {
|
||||
$output[] = $line;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ class Server extends AbstractServer {
|
|||
}
|
||||
$output = $connection->readAll();
|
||||
// sometimes we get an empty line first
|
||||
if (count($output) === 0) {
|
||||
if (count($output) < 2) {
|
||||
$output = $connection->readAll();
|
||||
}
|
||||
$parser = new Parser($this->timezoneProvider);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue