mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-14 17:45:04 +00:00
Fixed RSS link.
This commit is contained in:
parent
e11fc49fd7
commit
3d6654143e
1 changed files with 4 additions and 4 deletions
8
html.c
8
html.c
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue