diff options
| author | grunfink <grunfink@comam.es> | 2025-06-06 21:02:28 +0200 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2025-06-06 21:02:28 +0200 |
| commit | cbf71ca0cabdf46a1eb595db01601858c8823acc (patch) | |
| tree | 2fa7065b5331a693847913dedaef046593fefe6f /html.c | |
| parent | 292fa229ecd34af70b79126cef26fb224db5de16 (diff) | |
Skip incomplete attachments.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -2427,6 +2427,9 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only, const char *o_href = xs_dict_get(a, "href"); const char *name = xs_dict_get(a, "name"); + if (!xs_is_string(type) || !xs_is_string(o_href)) + continue; + /* if this URL is already in the post content, skip */ if (content && xs_str_in(content, o_href) != -1) continue; |