summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar default2022-11-20 05:53:40 +0100
committerGravatar default2022-11-20 05:53:40 +0100
commit3d6654143ecb4830b69126bdcb19bf91f05b5ccc (patch)
treece8eb7f2370770b0ecd8b856ef182fbc858e0bf5 /html.c
parentAdd a link to the post in each RSS entry. (diff)
downloadsnac2-3d6654143ecb4830b69126bdcb19bf91f05b5ccc.tar.gz
snac2-3d6654143ecb4830b69126bdcb19bf91f05b5ccc.tar.xz
snac2-3d6654143ecb4830b69126bdcb19bf91f05b5ccc.zip
Fixed RSS link.
Diffstat (limited to 'html.c')
-rw-r--r--html.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/html.c b/html.c
index 2d8e1fd..e6ef263 100644
--- a/html.c
+++ b/html.c
@@ -1132,14 +1132,14 @@ int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char *
1132 xs *title = xs_dup(content); 1132 xs *title = xs_dup(content);
1133 int i = -1; 1133 int i = -1;
1134 1134
1135 /* escape tags */
1136 content = xs_replace_i(content, "<", "&lt;");
1137 content = xs_replace_i(content, ">", "&gt;");
1138
1139 /* add the post link */ 1135 /* add the post link */
1140 xs *l = xs_fmt("<p><a href=\"%s\">%s</a><p>", id, id); 1136 xs *l = xs_fmt("<p><a href=\"%s\">%s</a><p>", id, id);
1141 content = xs_str_cat(content, l); 1137 content = xs_str_cat(content, l);
1142 1138
1139 /* escape tags */
1140 content = xs_replace_i(content, "<", "&lt;");
1141 content = xs_replace_i(content, ">", "&gt;");
1142
1143 if (strlen(title) > 40) 1143 if (strlen(title) > 40)
1144 title = xs_crop(title, 0, i = 40); 1144 title = xs_crop(title, 0, i = 40);
1145 1145