Skip to content

when content too big preg_replace  #417

Closed
@anassrakibi

Description

I get a white page when the content is too big. After Debugging I found that the problem is:

$content .= preg_replace('/(<%|%>|<\?php|<\?|\?>|<script\s+language\s*=\s*[\"\']?\s*php\s*[\"\']?\s*>)/',"<?php echo '\$1'; ?>\n", $curr_split); in smarty_internal_runtime_updatecache.php.A quick fix for this would be to add {nocache} in the template. But for the other preg_replace in smarty_internal_runtime_codeframe.php couldn't find any quick fix. The $output should be split , preg_replaced and finally merged again

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions