summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'html.c')
-rw-r--r--html.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/html.c b/html.c
index e4703d1..8455097 100644
--- a/html.c
+++ b/html.c
@@ -836,6 +836,10 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local,
if (is_hidden(snac, id))
return os;
+ /* avoid too deep nesting, as it may be a loop */
+ if (level >= 256)
+ return os;
+
xs *s = xs_str_new("<div>\n");
{