Skip to content

Commit

Permalink
Fix CP #1: 'Could not open' error while processing downloaded archive.
Browse files Browse the repository at this point in the history
* Added rtrim around unpacked string data in archive.inc
  • Loading branch information
cambell-prince committed Jun 20, 2014
1 parent ac22598 commit fb9939c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/archive.inc
Expand Up @@ -324,7 +324,7 @@ class tar_file extends archive
{
$temp = unpack("a100name/a8mode/a8uid/a8gid/a12size/a12mtime/a8checksum/a1type/a100symlink/a6magic/a2temp/a32temp/a32temp/a8temp/a8temp/a155prefix/a12temp", $block);
$file = array (
'name' => $temp['prefix'] . $temp['name'],
'name' => rtrim($temp['prefix']) . rtrim($temp['name']),
'stat' => array (
2 => octdec($temp['mode']),
4 => octdec($temp['uid']),
Expand Down

0 comments on commit fb9939c

Please sign in to comment.