diff options
| -rw-r--r-- | html.c | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -836,6 +836,10 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local, | |||
| 836 | if (is_hidden(snac, id)) | 836 | if (is_hidden(snac, id)) |
| 837 | return os; | 837 | return os; |
| 838 | 838 | ||
| 839 | /* avoid too deep nesting, as it may be a loop */ | ||
| 840 | if (level >= 256) | ||
| 841 | return os; | ||
| 842 | |||
| 839 | xs *s = xs_str_new("<div>\n"); | 843 | xs *s = xs_str_new("<div>\n"); |
| 840 | 844 | ||
| 841 | { | 845 | { |