mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 17:44:38 +09:00
issue 2351, fixed a bug that update core by easyinstall is failed.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.2@11199 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c451d17ebc
commit
c953abb0ba
1 changed files with 5 additions and 1 deletions
|
|
@ -99,6 +99,10 @@ class tar {
|
||||||
// PRIVATE ACCESS FUNCTION
|
// PRIVATE ACCESS FUNCTION
|
||||||
function __parseNullPaddedString($string) {
|
function __parseNullPaddedString($string) {
|
||||||
$position = strpos($string,chr(0));
|
$position = strpos($string,chr(0));
|
||||||
|
if(!$position)
|
||||||
|
{
|
||||||
|
$position = strlen($string);
|
||||||
|
}
|
||||||
return substr($string,0,$position);
|
return substr($string,0,$position);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -165,7 +169,7 @@ class tar {
|
||||||
if(strtolower($file_type) == 'l' || $file_name == '././@LongLink')
|
if(strtolower($file_type) == 'l' || $file_name == '././@LongLink')
|
||||||
{
|
{
|
||||||
$flag_longlink = true;
|
$flag_longlink = true;
|
||||||
$longlink_name = $file_contents;
|
$longlink_name = $this->__parseNullPaddedString($file_contents);
|
||||||
}
|
}
|
||||||
elseif($file_type == '0') {
|
elseif($file_type == '0') {
|
||||||
// Increment number of files
|
// Increment number of files
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue