Project

General

Profile

Bug #20843 ยป 0011661.patch

Administrator Admin, 2009-08-13 17:42

View differences:

typo3/mod/tools/em/class.em_index.php (Arbeitskopie)
// Link for downloading extension has been clicked - deliver content stream:
$dlFile = $this->CMD['downloadFile'];
if (t3lib_div::isFirstPartOfStr($dlFile,PATH_site) && t3lib_div::isFirstPartOfStr($dlFile,$absPath) && @is_file($dlFile)) {
ob_clean();
$mimeType = 'application/octet-stream';
Header('Content-Type: '.$mimeType);
Header('Content-Disposition: attachment; filename='.basename($dlFile));
......
$backUpData = $this->terConnection->makeUploadDataFromArray($uArr);
$filename = 'T3X_'.$extKey.'-'.str_replace('.','_',$extInfo['EM_CONF']['version']).'-z-'.date('YmdHi').'.t3x';
if (intval($this->CMD['doBackup'])==1) {
ob_clean();
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename='.$filename);
echo $backUpData;
......
}
$filename.='+adt.sql';
ob_clean();
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename='.$filename);
echo $this->dumpStaticTables($this->CMD['dumpTables']);
    (1-1/1)