summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar default2023-07-11 20:34:02 +0200
committerGravatar default2023-07-11 20:34:02 +0200
commita0e813db0ae3cbf8dae07ec5bec2e882c3b560c5 (patch)
treef4380c53511b4ea2476e2b15477f7686476b4714 /html.c
parentWhen sanitize() is called, encode_html() is no longer needed. (diff)
downloadsnac2-a0e813db0ae3cbf8dae07ec5bec2e882c3b560c5.tar.gz
snac2-a0e813db0ae3cbf8dae07ec5bec2e882c3b560c5.tar.xz
snac2-a0e813db0ae3cbf8dae07ec5bec2e882c3b560c5.zip
Fixed HTML re-encoding in the user bio.
Diffstat (limited to 'html.c')
-rw-r--r--html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/html.c b/html.c
index df90df8..ef5e60b 100644
--- a/html.c
+++ b/html.c
@@ -368,10 +368,10 @@ d_char *html_user_header(snac *snac, d_char *s, int local)
368 s = xs_str_cat(s, s1); 368 s = xs_str_cat(s, s1);
369 369
370 if (local) { 370 if (local) {
371 xs *es1 = encode_html(xs_dict_get(snac->config, "bio")); 371 xs *es1 = encode_html(xs_dict_get(snac->config, "bio"));
372 xs *bio1 = not_really_markdown(es1, NULL); 372 xs *bio1 = not_really_markdown(es1, NULL);
373 xs *tags = xs_list_new(); 373 xs *tags = xs_list_new();
374 xs *bio2 = encode_html(process_tags(snac, bio1, &tags)); 374 xs *bio2 = process_tags(snac, bio1, &tags);
375 xs *s1 = xs_fmt("<div class=\"p-note snac-top-user-bio\">%s</div>\n", bio2); 375 xs *s1 = xs_fmt("<div class=\"p-note snac-top-user-bio\">%s</div>\n", bio2);
376 376
377 s = xs_str_cat(s, s1); 377 s = xs_str_cat(s, s1);