commit a0fc1b3

default  ·  2024-10-28 08:37:02 +0000 UTC
parent 220f611
Fixed crash.
1 files changed,  +1, -1
M html.c
M html.c
+1, -1
1@@ -1944,7 +1944,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
2             const char *name = xs_dict_get(a, "name");
3 
4             /* if this image is already in the post content, skip */
5-            if (xs_str_in(content, href) != -1)
6+            if (content && xs_str_in(content, href) != -1)
7                 continue;
8 
9             if (xs_startswith(type, "image/") || strcmp(type, "Image") == 0) {