mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
Fix parsing allinfo result
This commit is contained in:
parent
2a101e73bc
commit
2754259528
2 changed files with 33 additions and 1 deletions
|
|
@ -108,7 +108,7 @@ class Parser {
|
|||
if ($name === 'write_time') {
|
||||
$mtime = strtotime($value);
|
||||
} else if ($name === 'attributes') {
|
||||
$mode = hexdec(substr($value, 1, -1));
|
||||
$mode = hexdec(substr($value, strpos($value, '('), -1));
|
||||
} else if ($name === 'stream') {
|
||||
list(, $size,) = explode(' ', $value);
|
||||
$size = intval($size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue