[BUGFIX] Deactivate output buffer for FileDumpEID.php 33/36533/2
authorRoman Schuermann <roman.schuermann@wmdb.de>
Sat, 31 Jan 2015 09:33:29 +0000 (10:33 +0100)
committerPhilipp Gampe <philipp.gampe@typo3.org>
Sat, 31 Jan 2015 17:34:11 +0000 (18:34 +0100)
If you try to download large file via FileDumpEID.php you may
get an out of memory error.

Resolves: #64273
Releases: master, 6.2
Change-Id: Ie1fcf9eac5d8e7466bbfe6eb8357ed9ce62fa649
Reviewed-on: http://review.typo3.org/36533
Reviewed-by: Philipp Gampe <philipp.gampe@typo3.org>
Tested-by: Philipp Gampe <philipp.gampe@typo3.org>
typo3/sysext/core/Classes/Resource/ResourceStorage.php

index 557dea3..77eca62 100644 (file)
@@ -1461,6 +1461,9 @@ class ResourceStorage implements ResourceStorageInterface {
                );
                ob_clean();
                flush();
+               while (ob_get_level() > 0) {
+                       ob_end_clean();
+               }
                $this->driver->dumpFileContents($file->getIdentifier());
        }