[BUGIFX] Extra output block backend thumbnails 59/18959/2
authorFrancois Suter <francois@typo3.org>
Tue, 12 Feb 2013 16:09:14 +0000 (17:09 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 15 Mar 2013 18:30:28 +0000 (19:30 +0100)
If some inclusion causes output when viewing image thumbnails
in the backend, the output will be broken. Adding a call to
ob_clean() ensures that this does not happen.

Resolves: #31953
Releases: 6.1, 6.0
Change-Id: I1d33bc3c5e8bbd1851f087c76564f8924f8dfe26
Reviewed-on: https://review.typo3.org/18959
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/backend/Classes/View/ThumbnailView.php

index 9a63f5e..66b18b6 100644 (file)
@@ -196,6 +196,8 @@ class ThumbnailView {
         * @todo Define visibility
         */
        public function main() {
+               // Clean output buffer to ensure no extraneous output exists
+               ob_clean();
                // If file exists, we make a thumbnail of the file.
                if (is_object($this->image)) {
                        // Check file extension: