mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
Merge pull request #66 from daanbonke/master
Fix for invalid file size because of multiple data streams.
This commit is contained in:
commit
2f3ff44f4c
1 changed files with 4 additions and 1 deletions
|
|
@ -135,8 +135,11 @@ class Parser {
|
|||
$name = isset($words[0]) ? $words[0] : '';
|
||||
$value = isset($words[1]) ? $words[1] : '';
|
||||
$value = trim($value);
|
||||
|
||||
if (!isset($data[$name])) {
|
||||
$data[$name] = $value;
|
||||
}
|
||||
}
|
||||
return [
|
||||
'mtime' => strtotime($data['write_time']),
|
||||
'mode' => hexdec(substr($data['attributes'], strpos($data['attributes'], '('), -1)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue