Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tags not interpreted after large number of characters. #29

Open
crempp opened this issue Dec 15, 2010 · 1 comment
Open

Tags not interpreted after large number of characters. #29

crempp opened this issue Dec 15, 2010 · 1 comment

Comments

@crempp
Copy link

crempp commented Dec 15, 2010

If you create a template:

{% extends base.html %}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum id consequat justo. Phasellus gravida, mi a aliquam eleifend, nisi quam elementum felis, eget congue magna lorem eget magna....
... REPEAT FOR A LONG TIME...
{% block content %}

{% endblock %}

The block and endblock tags are not interpreted but are shown in the output as raw tags. If you move the block to the top of the file the block shows correctly.

It seems like there's a maximum number of characters allowed in the templates.

@cyberklin
Copy link
Contributor

try ini_set('pcre.backtrack_limit',1000000) before rendering or even more than 1M (default value is 100K)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants