Opened 13 years ago
Closed 13 years ago
#19088 closed Bug (fixed)
Blocktrans tag goes to infinite recursion if python dict string format is used
| Reported by: | vlinhart | Owned by: | Łukasz Rekucki |
|---|---|---|---|
| Component: | Translations | Version: | 1.4 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | yes | UI/UX: | no |
Description
Wrongly formatted blocktrans content example:
{% blocktrans %}Enter SMS No. %(var_0)s{% endblocktrans %}
This will cause blocktrans tag to go to infinite recursion of death possibly leading to out of memory for the whole server.
Change History (7)
comment:1 by , 13 years ago
| Owner: | changed from to |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
comment:4 by , 13 years ago
| Patch needs improvement: | set |
|---|
Details in discussion https://github.com/django/django/pull/442
comment:6 by , 13 years ago
| Triage Stage: | Accepted → Ready for checkin |
|---|
comment:7 by , 13 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
It definitely should not crash like that.
Just as a side note, Python has a fixed recursion limit (see sys.getrecursionlimit), so no, it won't use up all of your server's memory.