mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
handle new share list output
This commit is contained in:
parent
5a8d9edf74
commit
89f47cfdf2
4 changed files with 27 additions and 6 deletions
|
|
@ -166,6 +166,10 @@ class Parser {
|
|||
if (strtolower($type) === 'disk') {
|
||||
$shareNames[$name] = $description;
|
||||
}
|
||||
} else if (strpos($line, 'Disk')) {
|
||||
// new output format
|
||||
list($name, $description) = explode('Disk', $line);
|
||||
$shareNames[trim($name)] = trim($description);
|
||||
}
|
||||
}
|
||||
return $shareNames;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue