diff options
| author | 2026-03-18 15:47:17 +0100 | |
|---|---|---|
| committer | 2026-03-18 15:47:17 +0100 | |
| commit | ef27a364a62a10c2bc59054b4d481a2d5ad2b6b3 (patch) | |
| tree | 8f409f3d28f5f7a151b55c700a5aee1312c98fca /html.c | |
| parent | Deleted unused goto label. (diff) | |
| download | snac2-ef27a364a62a10c2bc59054b4d481a2d5ad2b6b3.tar.gz snac2-ef27a364a62a10c2bc59054b4d481a2d5ad2b6b3.tar.xz snac2-ef27a364a62a10c2bc59054b4d481a2d5ad2b6b3.zip | |
Don't use a NULL md5 in quoted post anchors.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -2802,10 +2802,12 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only, | |||
| 2802 | xs *quoted_post = NULL; | 2802 | xs *quoted_post = NULL; |
| 2803 | 2803 | ||
| 2804 | if (valid_status(object_get(quoted_id, "ed_post))) { | 2804 | if (valid_status(object_get(quoted_id, "ed_post))) { |
| 2805 | xs *md5 = xs_md5_hex(quoted_id, strlen(quoted_id)); | ||
| 2806 | |||
| 2805 | xs_html_add(snac_content, | 2807 | xs_html_add(snac_content, |
| 2806 | xs_html_tag("blockquote", | 2808 | xs_html_tag("blockquote", |
| 2807 | xs_html_attr("class", "snac-quoted-post"), | 2809 | xs_html_attr("class", "snac-quoted-post"), |
| 2808 | html_entry(user, quoted_post, 1, level + 1, NULL, 1))); | 2810 | html_entry(user, quoted_post, 1, level + 1, md5, 1))); |
| 2809 | } | 2811 | } |
| 2810 | else | 2812 | else |
| 2811 | if (user) | 2813 | if (user) |