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