Fixed bug #17701: Generated t3x might be corrupted
authorxperseguers <xperseguers@709f56b5-9817-0410-a4d7-c38de5d9e867>
Tue, 22 Feb 2011 10:04:04 +0000 (10:04 +0000)
committerxperseguers <xperseguers@709f56b5-9817-0410-a4d7-c38de5d9e867>
Tue, 22 Feb 2011 10:04:04 +0000 (10:04 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10522 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/em/classes/index.php

index 474f390..9c60c03 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-02-22  Xavier Perseguers  <typo3@perseguers.ch>
+
+       * Fixed bug #17701: Generated t3x might be corrupted
+
 2011-02-21  Steffen Kamper  <steffen@typo3.org
 
        * Fixed bug #17383: Open forms cannot be saved after "Relogin" (Security Token errors) (Thanks to Helmut Hummel)
index e2fc165..e3b600f 100644 (file)
@@ -2222,6 +2222,7 @@ class SC_mod_tools_em_index extends t3lib_SCbase {
                        $backUpData = $this->terConnection->makeUploadDataFromarray($uArr);
                        $filename = 'T3X_' . $extKey . '-' . str_replace('.', '_', $extInfo['EM_CONF']['version']) . '-z-' . date('YmdHi') . '.t3x';
                        if (intval($this->CMD['doBackup']) == 1) {
+                               t3lib_div::cleanOutputBuffers();
                                header('Content-Type: application/octet-stream');
                                header('Content-Disposition: attachment; filename=' . $filename);
                                echo $backUpData;