Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Output buffering may truncate image output #127

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/Intervention/Image/ImageCacheController.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ class ImageCacheController extends BaseController
*/
public function getResponse($template, $filename)
{
// Ensure that output buffering is off:
ob_end_clean();

switch (strtolower($template)) {
case 'original':
return $this->getOriginal($filename);
Expand Down