diff options
author | default <nobody@localhost> | 2023-05-24 11:49:16 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-05-24 11:49:16 +0200 |
commit | 0d8a040d9086cd7a9e13a7b070e425df9201f7e5 (patch) | |
tree | c9832687eaaa9a0dfd954a9bbc835557e14dc579 /html.c | |
parent | 9bc48255071016a124807a7fc6a7316c3abe734a (diff) |
Added some experimental 'Question' posting code.
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -852,7 +852,9 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local, #endif { - xs *c = sanitize(xs_dict_get(msg, "content")); + const char *content = xs_dict_get(msg, "content"); + + xs *c = sanitize(xs_is_null(content) ? "" : content); char *p, *v; /* do some tweaks to the content */ |