mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
- bugfix preg_replace could fail on large content resulting in a blank page https://github.com/smarty-php/smarty/issues/417
This commit is contained in:
@@ -72,6 +72,7 @@ class Smarty_Internal_Runtime_UpdateCache
|
||||
$php_pattern = '/(<%|%>|<\?php|<\?|\?>|<script\s+language\s*=\s*[\"\']?\s*php\s*[\"\']?\s*>)/';
|
||||
$content = ob_get_clean();
|
||||
$hash_array = $cached->hashes;
|
||||
$hash_array[$_template->compiled->nocache_hash] = true;
|
||||
$hash_array = array_keys($hash_array);
|
||||
$nocache_hash = '(' . implode('|', $hash_array) . ')';
|
||||
$_template->cached->has_nocache_code = false;
|
||||
|
Reference in New Issue
Block a user