diff options
author | default <nobody@localhost> | 2022-11-20 05:53:40 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2022-11-20 05:53:40 +0100 |
commit | 3d6654143ecb4830b69126bdcb19bf91f05b5ccc (patch) | |
tree | ce8eb7f2370770b0ecd8b856ef182fbc858e0bf5 | |
parent | e11fc49fd7c8764c0cc6fa651a1d7ef3d70ab90f (diff) |
Fixed RSS link.
-rw-r--r-- | html.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1132,14 +1132,14 @@ int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char * xs *title = xs_dup(content); int i = -1; - /* escape tags */ - content = xs_replace_i(content, "<", "<"); - content = xs_replace_i(content, ">", ">"); - /* add the post link */ xs *l = xs_fmt("<p><a href=\"%s\">%s</a><p>", id, id); content = xs_str_cat(content, l); + /* escape tags */ + content = xs_replace_i(content, "<", "<"); + content = xs_replace_i(content, ">", ">"); + if (strlen(title) > 40) title = xs_crop(title, 0, i = 40); |