changing include to readfile, fixes #5033

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7354 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2008-07-23 20:53:59 +00:00
parent c1dce9e7ff
commit d6d7bd68bd

View file

@ -674,7 +674,7 @@ class Dispatcher extends Object {
header("Expires: " . gmdate("D, j M Y H:i:s", time() + DAY) . " GMT");
header("Cache-Control: cache");
header("Pragma: cache");
include ($assetFile);
readfile($assetFile);
if(Configure::read('Asset.compress')) {
header("Content-length: " . ob_get_length());