commit cbf71ca
grunfink
·
2025-06-06 19:02:28 +0000 UTC
parent 292fa22
Skip incomplete attachments.
1 files changed,
+3,
-0
M
html.c
M
html.c
+3,
-0
1@@ -2427,6 +2427,9 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
2 const char *o_href = xs_dict_get(a, "href");
3 const char *name = xs_dict_get(a, "name");
4
5+ if (!xs_is_string(type) || !xs_is_string(o_href))
6+ continue;
7+
8 /* if this URL is already in the post content, skip */
9 if (content && xs_str_in(content, o_href) != -1)
10 continue;