snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit cbf71ca0cabdf46a1eb595db01601858c8823acc
parent 292fa229ecd34af70b79126cef26fb224db5de16
Author: grunfink <grunfink@comam.es>
Date:   Fri,  6 Jun 2025 21:02:28 +0200

Skip incomplete attachments.

Diffstat:
Mhtml.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/html.c b/html.c @@ -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;