[BUGIFX] Extra output block backend thumbnails 20/18220/2
authorFrancois Suter <francois@typo3.org>
Tue, 12 Feb 2013 16:09:14 +0000 (17:09 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Fri, 15 Mar 2013 07:51:20 +0000 (08:51 +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/18220
Reviewed-by: Stefan Neufeind
Reviewed-by: Wouter Wolters
Reviewed-by: Mattias Nilsson
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
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: