mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Applying patch from 'tbhot3ww' to make Dispatcher::asset() more forgiving with whitespace. Fixes #864
This commit is contained in:
parent
94965f0f6c
commit
8f25547fc1
1 changed files with 2 additions and 0 deletions
|
@ -647,6 +647,8 @@ class Dispatcher extends Object {
|
|||
if ($ext === 'css' || $ext === 'js') {
|
||||
include($assetFile);
|
||||
} else {
|
||||
ob_clean();
|
||||
flush();
|
||||
readfile($assetFile);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue