summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-03-08 05:41:08 +0100
committerdefault <nobody@localhost>2024-03-08 05:41:08 +0100
commit093f4af2827dab26785e788dc0d49d54308239b5 (patch)
tree8b11d7bf94934136bf886a7522d22f4c16a0a355 /html.c
parentc2fb2a4034f499cc44227b6485881ba9127c2f01 (diff)
Shortened the maximum conversation levels.
Set to a compilation define in MAX_CONVERSATION_LEVELS.
Diffstat (limited to 'html.c')
-rw-r--r--html.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/html.c b/html.c
index 162a2da..d34439a 100644
--- a/html.c
+++ b/html.c
@@ -1334,8 +1334,9 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
}
/* avoid too deep nesting, as it may be a loop */
- if (level >= 256)
- return NULL;
+ if (level >= MAX_CONVERSATION_LEVELS)
+ return xs_html_tag("mark",
+ xs_html_text(L("Truncated (too deep)")));
if (strcmp(type, "Follow") == 0) {
return xs_html_tag("div",