From 8f25547fc1b1c350cea1699769f7b4eda4422a7f Mon Sep 17 00:00:00 2001 From: mark_story Date: Mon, 28 Jun 2010 22:34:47 -0400 Subject: [PATCH] Applying patch from 'tbhot3ww' to make Dispatcher::asset() more forgiving with whitespace. Fixes #864 --- cake/dispatcher.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cake/dispatcher.php b/cake/dispatcher.php index e4ab3ffcf..d7363e1c6 100644 --- a/cake/dispatcher.php +++ b/cake/dispatcher.php @@ -647,6 +647,8 @@ class Dispatcher extends Object { if ($ext === 'css' || $ext === 'js') { include($assetFile); } else { + ob_clean(); + flush(); readfile($assetFile); }