Project

General

Profile

Bug #18463 » 0007882.patch

Administrator Admin, 2008-03-17 23:53

View differences:

typo3/sysext/impexp/class.tx_impexp.php (Arbeitskopie)
// getting header data
$initStr = fread($fd, $initStrLen);
$initStrDat = explode(':',$initStr);
if (strstr($initStrDat[0],'Warning') == FALSE) {
if (!strcmp($initStrDat[3],'')) {
$datString = fread($fd,intval($initStrDat[2]));
fread($fd,1);
if (!strcmp(md5($datString), $initStrDat[0])) {
if ($initStrDat[1]) {
if ($this->compress) {
$datString = gzuncompress($datString);
} else $this->error('Content read error: This file requires decompression, but this server does not offer gzcompress()/gzuncompress() functions.',1);
}
return $unserialize ? unserialize($datString) : $datString;
} else $this->error('MD5 check failed ('.$name.')');
} else $this->error('File read error: InitString had a wrong length. ('.$name.')');
} else $this->error('File read error: Warning message in file. ('.$initStr.fgets($fd).')');
if (preg_match('/^[0-9a-f]{32}$/', $initStrDat[0]) && is_integer($initStrDat[2]) && $initStrDat[2]>0) {
if (strstr($initStrDat[0],'Warning') == FALSE) {
if (!strcmp($initStrDat[3],'')) {
$datString = fread($fd,intval($initStrDat[2]));
fread($fd,1);
if (!strcmp(md5($datString), $initStrDat[0])) {
if ($initStrDat[1]) {
if ($this->compress) {
$datString = gzuncompress($datString);
} else $this->error('Content read error: This file requires decompression, but this server does not offer gzcompress()/gzuncompress() functions.',1);
}
return $unserialize ? unserialize($datString) : $datString;
} else $this->error('MD5 check failed ('.$name.')');
} else $this->error('File read error: InitString had a wrong length. ('.$name.')');
} else $this->error('File read error: Warning message in file. ('.$initStr.fgets($fd).')');
} else $this->error('File read error: The file seems to be corrupted.');
}
/**
typo3/sysext/install/mod/class.tx_install.php (Arbeitskopie)
}
}
}
if (ini_get('mbstring.func_overload')>0) {
$this->message(
$ext, 'Multi-byte functions override regular functions',
'<i>mbstring.func_overload='.ini_get('mbstring.func_overload').'</i>
This may cause problems if enabled, since always e.g. mb_strlen() is used instead of strlen().',
2, true
);
}
// *****************
// Safe mode related
(2-2/3)