Fix parsing allinfo result

This commit is contained in:
Robin Appelman 2016-08-26 22:57:15 +02:00
commit 2754259528
2 changed files with 33 additions and 1 deletions

View file

@ -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);