Skip to content

Commit

Permalink
- bugfix preg_replace could fail on large content resulting in a blan…
Browse files Browse the repository at this point in the history
…k page #417
  • Loading branch information
Uwe Tews committed Mar 23, 2018
1 parent 3a3b8c7 commit c81948d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/sysplugins/smarty_internal_runtime_updatecache.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public function removeNoCacheHash(Smarty_Template_Cached $cached,
$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;
Expand Down

0 comments on commit c81948d

Please sign in to comment.