diff options
| author | 2023-07-11 20:34:02 +0200 | |
|---|---|---|
| committer | 2023-07-11 20:34:02 +0200 | |
| commit | a0e813db0ae3cbf8dae07ec5bec2e882c3b560c5 (patch) | |
| tree | f4380c53511b4ea2476e2b15477f7686476b4714 | |
| parent | When sanitize() is called, encode_html() is no longer needed. (diff) | |
| download | snac2-a0e813db0ae3cbf8dae07ec5bec2e882c3b560c5.tar.gz snac2-a0e813db0ae3cbf8dae07ec5bec2e882c3b560c5.tar.xz snac2-a0e813db0ae3cbf8dae07ec5bec2e882c3b560c5.zip | |
Fixed HTML re-encoding in the user bio.
| -rw-r--r-- | html.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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); |